Skeleton
Loading placeholder components for content that is loading.
Installation
bash
npx @smicolon/cli add skeletonRun init once per project before adding components. See Installation.
Basic
Variants
Text Skeleton
Avatar Skeleton
Card Skeleton
Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "circular" | "rectangular" | "default" | The shape of the skeleton. |
animate | boolean | true | Whether to animate the skeleton. |
lines | number | 3 | Number of lines in SkeletonText. |
className | string | — | Sets the size, such as h-12 w-48. |