MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / SkeletonText

Function SkeletonText

ui/src/components/StateViews.tsx:56–64  ·  view source on GitHub ↗
({ lines = 3, className = '' }: { lines?: number; className?: string })

Source from the content-addressed store, hash-verified

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". */
56export 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

Callers

nothing calls this directly

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected