Skip to main content

Skeleton

A placeholder shaped like the content that will replace it.

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When 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​

PropTypeRequiredDescription
shape"text" | "line" | "block" | "circle" | "chart" | "table"—Silhouette to draw. Must match the content it replaces.
linesnumber—For shape="text": how many lines. The last is short, like real prose.
widthnumber | string—
heightnumber | string—
radiusnumber | string—
classNamestring—