Feedback
Spinner
Work in progress, duration unknown.
Variants and sizes
A ring (default) or three dots, from 12 to 40px. The spinner takes the colour of its text, so it works on any surface.
Loading, xsLoading, smLoading, mdLoading, lgLoading, xl
Loading dots, xsLoading dots, smLoading dots, mdLoading dots, lgLoading dots, xl
When to use
- Work is in progress and you cannot say how long it will take: syncing, searching, loading a page.
- Inline next to the text that says what is happening.
Not for: measurable work (use progress), a content area whose shape you know (use a skeleton), or a button that is busy (Button has its own loading state).
In context
Say what is happening in words beside the spinner. When the surrounding text already says it, pass label={false} so it is not announced twice.
SyncingSyncing 24 files to Atlas…
Maya is typing
Loading your dashboard
API
Spinner
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | 'ring' | 'dots' | 'ring' | Shape of the indicator. |
| size | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'md' | 12 / 16 / 20 / 28 / 40px. |
| label | string | false | 'Loading' | Visually hidden text for screen readers. false makes the spinner purely decorative. |
| ...props | HTMLAttributes<HTMLSpanElement> | — | Forwarded, including ref and className. |
Accessibility
- role="status" plus visually hidden text: a polite live region, so “Loading” is announced without stealing focus.
- With label={false} the spinner is aria-hidden and has no role; put the status on the surrounding element instead.
- The ring and dots are aria-hidden; they carry no information that the label does not.
Motion
- Ring: a 0.7s linear rotation. Dots: a 1s staggered bounce with a fade.
- Reduced motion: the indicator holds still; the label still tells the user the work is in progress.