Skeleton
A placeholder shaped like the content that will replace it.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
A placeholder shaped like the content that will replace it.
Accessibility
Fully keyboard operable: Tab to focus, Enter/Space to activate. The visible focus ring uses --focus-ring — never remove it. Provide an accessible label (aria-label) for icon-only controls.
Install and import
npx shadcn@latest add @prism/skeleton
import { Skeleton } from '@/components/prism/Skeleton';
In a no-build prototype, read it from the bundle instead: const { Skeleton } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
shape | "text" | "line" | "block" | "circle" | "chart" | "table" | — | Silhouette to draw. Must match the content it replaces. |
lines | number | — | For shape="text": how many lines. The last is short, like real prose. |
width | number | string | — | |
height | number | string | — | |
radius | number | string | — | |
className | string | — |