Draft. Ported from the control-center Spinner and styled with Beehexa tokens and decisions D11 and D18. Not yet approved. It is in the registry so teams can try it; the API may still change before approval.
A spinner is the Lucide loader-circle icon turning once a second. It shows that work is running when you can’t say how long it will take.
When to use
- For a wait of unknown length in one area: a list that is fetching, a panel that is refreshing.
When not to use
- In a button. Use the button’s
loadingprop; it shows the same spinner in place of the icon. - For a whole page loading. Use a skeleton.
- When you know the size of the task. Use progress.
Behaviour
- Waits 1 second before it shows (
motion.wait.spinner, D18). Below that people stay in flow, and a spinner that flashes and goes reads as a flicker. It keeps its space while it waits, so nothing moves. - Turns once a second (
motion.loop.spinner) at constant speed, and keeps turning under reduced motion: it is the only sign that work is running. - Pass
:delay="false"only where the wait has already passed, such as inside a toast for a running task.
Content
Put a short label next to the spinner when there is room: “Loading orders…”. Name the spinner the same way with aria-label.
Tokens
| Part | Token |
|---|---|
| Size | size.icon.default (follows the text colour) |
| Turn | motion.loop.spinner |
| Wait | motion.wait.spinner |