Feedback
Spinner
Indeterminate loading indicator that inherits the current text color.
import { Spinner } from "datui";Playground
<Spinner size="m" label="Loading…" />Examples
Sizes and color
Accessibility
- Renders
role="status"with a visually hiddenlabel(default “Loading…”), so screen readers announce it. - Pass
label={null}when a parent already announces the busy state; the spinner is thenaria-hidden. - Under
prefers-reduced-motionthe rotation slows down;pausedstops it entirely.
API
Spinner
Indeterminate loading indicator.
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | |
| label | string | Loading… | Accessible label. Pass `null` when a parent already announces the busy state. |
| paused | boolean | — | Pause the animation (e.g. for screenshots). |
| size | "s" | "m" | "l" | "xl" | — |