export interface SkeletonProps { /** Bars to draw, in the shape of the content that is coming. */ lines?: number; /** Widths as CSS lengths or percentages, cycled across the lines. */ widths?: string[]; className?: string; } export function Skeleton({ lines = 3, widths = ['100%', '84%', '62%'], className }: SkeletonProps) { return (
{Array.from({ length: lines }, (_, i) => ( ))} Loading
); }