Skeleton
Loading placeholder with pulse animation. Use skeletons to indicate content that is loading, preserving layout structure while data is fetched.
Variants
Preview
default
text
circular
rectangular
Custom Sizes
Preview
Card Placeholder
Preview
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "default" | "text" | "circular" | "rectangular" | "default" | Shape preset for the skeleton placeholder. |
| width | string | number | - | Custom width override. Accepts CSS values or pixel numbers. |
| height | string | number | - | Custom height override. Accepts CSS values or pixel numbers. |
| className | string | - | Additional CSS classes. |
Accessibility
- Use
aria-busy="true"on the parent container while content is loading - Add
aria-labeloraria-hidden="true"to skeleton elements as appropriate - The pulse animation respects
prefers-reduced-motionwhen configured in Tailwind - Supports
refforwarding for DOM access