import React, { type CSSProperties } from 'react' import styles from './_skeleton.module.scss' export type SkeletonProps = { /** Optionally override the height style property */ height?: CSSProperties['height'] /** Optionally override the width style property */ width?: CSSProperties['width'] /** Optionally override the border radius style property */ borderRadius?: CSSProperties['borderRadius'] /** Optional prop to add a test id to the Skeleton for QA testing */ qaTestId?: string } const Skeleton = ({ height, width, borderRadius, qaTestId = 'skeleton', }: SkeletonProps): React.JSX.Element => { return (
) } const HeaderMetric = () => { return (
) } const CardFooter = () => { return (
{/** Renders at 70% width to simulate shorter secondary text below the title */}
) } const Card = () => { return (
{/** Uses 175 as default width to match card's minimum width */}
) } Skeleton.Card = Card Skeleton.CardFooter = CardFooter Skeleton.HeaderMetric = HeaderMetric export { Skeleton }