ShimmerText
Short live status copy (a running step, a loading line) with a highlight that sweeps over the text while the work runs.
A short heading that rises in by word or by line, for docs heroes and empty states. The full string is always in the DOM.
A short heading that rises in by word or by line, for docs heroes and empty states. Not for body copy.
A heading that rises in word by word. Press Replay to see it again; Variants shows the by-line reveal. The full sentence is always in the DOM; only the visible copy animates.
One per view, on a hero or empty-state heading. Each word or line fades up over motion.duration300 with ease-out, 40ms apart by word and 80ms by line. No bounce, no scale, no loop. Under reduced motion the final text is there at once. Change replayKey to play it again.
import { TextReveal } from "agentic-ds-kit";From contracts/textreveal.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 |
|---|---|---|---|---|
| children | string | Yes | — | Plain text. With by="line", separate lines with \n. |
| by | word | line | No | word | — |
| as | h1 | h2 | h3 | p | span | No | h2 | — |
| replayKey | string|number | No | — | Change it to play the reveal again. |
| label | string | No | — | Accessible text when it should differ from children. |