Skeleton
Loading placeholders and structure hints
Skeleton
Structural placeholders to reduce layout shift.
Status: Beta
Demo
Skeleton
Text and avatar placeholders
Demo will load when visible.
API (Lite)
| Property | Type | Default | Description |
|---|---|---|---|
| loading | Show skeleton | ||
| lines | Text lines | ||
| variant | textrectcircle | Shape variant | |
| width | Width; numbers are converted to px | ||
| height | Height; numbers are converted to px | ||
| gap | Gap between multiple lines; numbers are converted to px |
Interaction Contract
loading=falserenders the default slot instead of the skeleton.linesalways renders at least one item, preventing empty skeleton output.variant="circle"always uses a circular radius and ignoresradius.
Composite Patterns
Card Placeholder
Skeletons inside cards for feeds.
Demo will load when visible.