Skeleton
Placeholders in the shape of the content that is coming, so the layout does not jump when it lands. Three shapes and two containers, composed rather than a component per layout.
Reach for it
Standing in for content whose shape is known, inside a Skeleton area that announces it.
Not for
A grey box of your own, and never without the area, which does the announcing.
An area that announces itself
The shapes are hidden from assistive technology and SkeletonArea does the announcing, which is why its label is required. Grey boxes alone are silent: a screen reader meets nothing and reads the page as empty, so nobody using one knows to wait.
Loading invoices
API reference
Skeleton
| Prop | Type | Default | Description |
|---|---|---|---|
| shape | 'text' | 'heading' | 'block' | - | |
| width | 'full' | 'half' | 'quarter' | - | |
| data-testid | string | - | Names the element for a test. Never rendered, never announced. |
SkeletonRow
| Prop | Type | Default | Description |
|---|---|---|---|
| children* | ReactNode | - |
SkeletonArea
| Prop | Type | Default | Description |
|---|---|---|---|
| label* | string | - | |
| children* | ReactNode | - | |
| data-testid | string | - | Names the element for a test. Never rendered, never announced. |