Skeleton
A gray placeholder in the shape of content that is still loading.
- Status
- ReadyBuild day 12 of 21
- Code
- In React
- Role
- Feedback
Usage
This demo is live, and the code below it is the same code, imports included. The component lives in src/ui of this repository and is not published to npm yet.
Pastes as editable layers. Shadows are not exported.
import { Skeleton } from "@/ui";
export default function SkeletonDemo() {
return (
<div aria-busy="true">
<Skeleton type="card" />
</div>
);
}Variants and states
Every specimen is the real component from src/ui, held in one state.
Pastes as editable layers. Shadows are not exported.
Props
- type
- "text" | "title" | "avatar" | "image" | "card" · default "text"
- The shape.
- animation
- "static" | "pulse" | "wave" · default "pulse"
- Static does not move.
- lines
- number · default 3
- Text only. The last line is shorter.
Figma to code
Figma properties by their exact names from Naming, and the React prop that carries each one. The table covers the shared properties that bear on this component; the Figma file decides which of them its component exposes. None means there is no prop for it yet.
- 🧰 Type
- type
- text, title, avatar, image, or card.
- 💡 Animation
- animation
- static, pulse, or wave.
Accessibility
What the code in src/ui does today, and what it leaves to you.
Keyboard
- Not focusable.
Screen readers
- Hidden from screen readers.
What you still need to do
- Set aria-busy on the region that is loading, and say when it is done.
- Shape the placeholder like the real content, so the page does not jump.
- Pulse and wave stop for people who ask for reduced motion.
When to use
Stands in while the first load of a list or card is in progress.
Do and don't
Do
- Match the skeleton to the real layout it replaces.
- Announce loading to screen readers.
Don't
- Keep a skeleton on screen after an error: show the error state.
- Animate it so strongly it draws the eye.
Related
4 of 28 other molecules, same role and ready ones first.
- AlertA persistent, inline message that communicates important information.Ready
- Progress BarShows how much of a task is complete.Ready
- ToastA brief, temporary notification that appears and disappears automatically.Ready
- AccordionStacked sections that expand to reveal their content.Ready
Status reflects the component tracker snapshot of 29 October 2026.