Function
SkeletonText
({
rows = 1,
size = "md",
className,
}: {
rows?: number
size?: "md" | "lg"
className?: string
})
Source from the content-addressed store, hash-verified
| 27 | } |
| 28 | |
| 29 | export function SkeletonText({ |
| 30 | rows = 1, |
| 31 | size = "md", |
| 32 | className, |
| 33 | }: { |
| 34 | rows?: number |
| 35 | size?: "md" | "lg" |
| 36 | className?: string |
| 37 | }) { |
| 38 | return ( |
| 39 | <div className="flex flex-col gap-1"> |
| 40 | <SkeletonArray amount={rows}> |
| 41 | <div |
| 42 | className={cn( |
| 43 | "bg-secondary animate-pulse w-full rounded-sm", |
| 44 | rows > 1 && "last:w-3/4", |
| 45 | size === "md" && "h-3", |
| 46 | size === "lg" && "h-5", |
| 47 | className |
| 48 | )} |
| 49 | /> |
| 50 | </SkeletonArray> |
| 51 | </div> |
| 52 | ) |
| 53 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected