| 54 | /** A stack of skeleton lines, the last one short like a paragraph tail. Handy |
| 55 | * for text blocks and list rows where you just need "some lines are loading". */ |
| 56 | export function SkeletonText({ lines = 3, className = '' }: { lines?: number; className?: string }) { |
| 57 | return ( |
| 58 | <div className={`flex flex-col gap-2 ${className}`} aria-hidden="true"> |
| 59 | {Array.from({ length: lines }).map((_, i) => ( |
| 60 | <div key={i} className={`skeleton h-3 rounded ${i === lines - 1 ? 'w-2/3' : 'w-full'}`} /> |
| 61 | ))} |
| 62 | </div> |
| 63 | ) |
| 64 | } |
| 65 | |
| 66 | /** Skeleton rows for a secondary sidebar list during cold load — matches |
| 67 | * `SidebarRow`'s `px-3 py-1.5` rhythm so the placeholder sits exactly where the |