ShimmerText
Short live status copy (a running step, a loading line) with a highlight that sweeps over the text while the work runs.
Gray placeholder shapes that keep the page's layout while content loads.
Gray placeholder shapes in the layout of content that is still loading. Not ShimmerText. Not Spinner. Not Progress.
Three shimmering text lines at md, still loading. Variants shows the other shapes and layouts.
Wrap the real content and set loading to false when it is ready. Label one Skeleton in a group; give the rest an empty label.
Gray placeholder shapes in the layout of content that is still loading, like lines of text, an avatar, or an image, or a whole table, card, or list layout, so the page keeps its shape until the data arrives.
import { Skeleton } from "agentic-ds-kit";From contracts/skeleton.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| shape | text | circle | rect | No | text | text: rounded lines as tall as the text. circle: an avatar or icon. rect: a block, like an image, chart, or card. |
| layout | table | card | list | No | — | A whole loading area in one piece, in place of shape. table: a header row and body rows at the 40px row height. card: an icon tile and title, then text lines (no frame; put it in a Card). list: an Avatar-sized circle and two lines per row. |
| lines | number | No | 1 | For text, the line count; with more than one, the last line is shorter, like the end of a paragraph. With layout, the row count (table 5, list 3) or the card's text lines (3) by default. |
| size | sm | md | lg | No | md | text: line height like caption, body-sm, or body. circle: space-8, space-10, or space-12, like Avatar. |
| width | string | number | No | — | Any CSS width, or px. Text and blocks fill the width by default; circles are square. |
| height | string | number | No | — | For rect. Defaults to calc(space-12 * 2). |
| animation | shimmer | pulse | none | No | shimmer | shimmer: a band of light moves across, in step on every skeleton. pulse: a slow fade. none: still gray. |
| loading | boolean | No | true | Off shows children instead. |
| children | slot | No | — | The real content, shown when loading is off. When loading turns off while on screen, it takes the placeholder's place with no wrapper and fades in out of a light blur (table rows fade their cells, so table markup stays valid); content that renders loaded from the start just appears. |
| label | string | No | Loading | Read by screen readers in place of the shapes. Give one label to a group and an empty label to the rest. |
Short live status copy (a running step, a loading line) with a highlight that sweeps over the text while the work runs.
Task completion as a bar or circle from 0 to 100, or an indeterminate bar when the percent is not known.
How far along or how full something is, from 0 to 100, as a bar, a ring, or a half ring, with optional red, amber, and green zones.
Spinning circular loader for short indeterminate waits.