ShimmerText
Short live status copy (a running step, a loading line) with a highlight that sweeps over the text while the work runs. The text stays at full opacity in its own colour; only the highlight animates.
stableAtomcontracts/shimmertext.json
Preview
ShimmerText
Animated text for short, indeterminate processing. Not a Skeleton cousin.
Master
One processing line at md and normal speed. Variants shows sm, md and lg.
Generating response…
Usage
Use ShimmerText for a short, indeterminate processing line. Keep the phrase brief. Not a skeleton block.
Do's
- A status word or line while its step is running; render plain text for queued, waiting, done and failed
- Generating or loading message placeholders
- When the step stops running, swap it for plain text with BlurCrossfade, keyed on status and label
Don'ts
- Static headings or body copy
- Long paragraphs of final content
When to use
- A status word or line while its step is running; render plain text for queued, waiting, done and failed
- Generating or loading message placeholders
- When the step stops running, swap it for plain text with BlurCrossfade, keyed on status and label
When not to use
- Static headings or body copy
- Long paragraphs of final content
What an agent reads
import { ShimmerText } from "agentic-ds-kit";- must
- Visually hidden text carries the text; the animated characters are aria-hidden, so screen readers hear the label once. No aria-label on the span
- Respect prefers-reduced-motion: no highlight, plain text
- The text never dims: only the highlight layer animates, by opacity
- defaults
- size md
- speed normal
- stops if
- Do not use raw hex
From contracts/shimmertext.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
Props
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| style | object | No | — | Inline style on the root span, merged with the kit's --shimmer-duration-factor variable. |
| children | string | Yes | — | — |
| size | sm | md | lg | No | md | — |
| speed | slow | normal | fast | No | normal | — |