Spinner
import { Spinner } from "@study/ui"
Result
Loading...
Live Editor
<div style={{ display: "flex", gap: 16, alignItems: "center" }}> <Spinner /> <Spinner size={32} /> <span style={{ display: "inline-flex", gap: 8, alignItems: "center", color: "var(--ui-muted)" }}> <Spinner size={16} label="" /> Transcribing … </span> </div>
When to use
- For waits of unknown length that last longer than a moment.
- Do not build it into buttons yourself –
loadingon the Button. - Whole pages:
PageSkeleton. Known progress: ProgressRing.
Props
| Prop | Type | Default | Meaning |
|---|---|---|---|
className | string | – | |
label | string | uiText().loading | Said to screen readers. Leave it empty when the surrounding control already says that something is loading. |
size | number | 20 | Width and height in px. |
Accessibility
- With a
labelit is astatus("Lädt" by default); if the text stands next to it, uselabel="".