Skeleton
Loading placeholder that mirrors the shape of upcoming content — sized via props, not ad-hoc classes.
npx @slipstream-ui/cli@latest add skeletonSized with props
Realistic layouts
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| height | string | — | Tailwind height class (e.g. 'h-4') applied to the block. |
| width | string | 'w-full' | Tailwind width class (e.g. 'w-48') applied to the block. |
| rounded | 'none' | 'sm' | 'md' | 'lg' | 'full' | 'md' | Corner preset — use full for avatars/dots, none for tables. |
| className | string | — | Escape hatch for anything the props do not cover. |
Accessibility
- aria-hidden so screen readers skip placeholder shapes.
- Wrap the loading region in a role=status element to announce "Loading…" once for the whole block.
- Match skeleton geometry to the real content to avoid layout shift when data arrives.
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+ — macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA — the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.