Skip to content
esc

Skeleton

Feedbackshadcn/ui

A pulsing gray shape that stands in for content while it loads, keeping the layout from jumping.

When to use

  • Mirror the real layout: same rows, same avatar size, text lines at 60 to 90% width.
  • Use it when loading takes more than about 300ms.
  • Don't mix skeletons and spinners in the same area.
  • Don't show a skeleton for content that failed; show an error.

Accessibility

Role
none (aria-hidden)
Keyboard
Not focusable.
Notes
Mark the loading region with aria-busy='true' on its container.

Props

  • className

    string

    Width, height and radius that match the content it replaces.

Prompt for your agent

Use the UnbuiltUI Skeleton. Call unbuilt_get_component("Skeleton") first and follow its spec: variants, states, usage rules and accessibility.

unbuilt_get_component returns

0 variants1 state1 prop4 usage rules2 a11y notes2 tokens1 example

Add it with shadcn

$npx shadcn add https://unbuiltui.com/r/skeleton.json

Tokens · 2

bg.subtleradius.md