Spinner
stableserver-safe
Indeterminate waiting. For anything with measurable progress use ProgressBar; for content loading into a known shape, Skeleton.
Sizes
<Spinner />
<Spinner size="lg" />
{/* Inside an already-labelled control, suppress the extra announcement */}
<Button disabled><Spinner label={null} /> Saving</Button>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| size | "sm" | "lg" | "sm" | 18px or 28px. |
| label | string | null | "Loading" | Announced while busy. Pass null inside a region that already says so. |
Accessibility
role=status with a label, so the wait is announced rather than silent.
Honours prefers-reduced-motion by slowing to 2.4s rather than stopping — a frozen spinner reads as a hang.