Function
SkeletonLines
({
count = 3,
widths,
className,
}: {
count?: number;
widths?: Array<string>;
className?: string;
})
Source from the content-addressed store, hash-verified
| 49 | |
| 50 | /** Muted, animated placeholder bars for loading states. */ |
| 51 | export function SkeletonLines({ |
| 52 | count = 3, |
| 53 | widths, |
| 54 | className, |
| 55 | }: { |
| 56 | count?: number; |
| 57 | widths?: Array<string>; |
| 58 | className?: string; |
| 59 | }) { |
| 60 | return ( |
| 61 | <div className={cn("tdp-skeleton", className)} aria-hidden="true"> |
| 62 | {Array.from({ length: count }, (_, i) => ( |
| 63 | <span |
| 64 | key={i} |
| 65 | className="tdp-skeleton-line" |
| 66 | style={widths && widths[i] ? { width: widths[i] } : undefined} |
| 67 | /> |
| 68 | ))} |
| 69 | </div> |
| 70 | ); |
| 71 | } |
| 72 | |
| 73 | /** Big-value + small-label stat tile. |
| 74 | * |
Callers
nothing calls this directly
Tested by
no test coverage detected