Function
Skeleton
({ className, ...props }: React.ComponentProps<"div">)
Source from the content-addressed store, hash-verified
| 1 | import { cn } from "@/lib/utils"; |
| 2 | |
| 3 | function Skeleton({ className, ...props }: React.ComponentProps<"div">) { |
| 4 | return ( |
| 5 | <div |
| 6 | className={cn( |
| 7 | "animate-skeleton rounded-sm [--skeleton-highlight:--alpha(var(--color-white)/64%)] [background:linear-gradient(120deg,transparent_40%,var(--skeleton-highlight),transparent_60%)_var(--color-muted)_0_0/200%_100%_fixed] dark:[--skeleton-highlight:--alpha(var(--color-white)/4%)]", |
| 8 | className, |
| 9 | )} |
| 10 | data-slot="skeleton" |
| 11 | {...props} |
| 12 | /> |
| 13 | ); |
| 14 | } |
| 15 | |
| 16 | export { Skeleton }; |
Callers
nothing calls this directly
Tested by
no test coverage detected