Spinner
Indicates that content is loading or an action is in progress.
- Status
- ReadyBuild day 19 of 21
- Code
- In React
- Role
- Feedback
Usage
This demo is live, and the code below it is the same code, imports included. The component lives in src/ui of this repository and is not published to npm yet.
Pastes as editable layers. Shadows are not exported.
import { Spinner, type SpinnerSize } from "@/ui";
const size: SpinnerSize = "md";
export default function SpinnerDemo() {
return <Spinner size={size} label="Loading transactions" />;
}Variants and states
Every specimen is the real component from src/ui, held in one state.
Pastes as editable layers. Shadows are not exported.
Props
- type
- "circular" | "dots" · default "circular"
- tone
- "neutral" | "primary" | "onPrimary" · default "primary"
- onPrimary is for a brand fill, such as inside a primary button.
- size
- "xs" | "sm" | "md" | "lg" · default "md"
- 12, 16, 24, 32.
- label
- string · default "Loading"
- Read by screen readers.
Figma to code
Figma properties by their exact names from Naming, and the React prop that carries each one. The table covers the shared properties that bear on this component; the Figma file decides which of them its component exposes. None means there is no prop for it yet.
- 🧰 Type
- type
- circular or dots.
- 🎨 Tone
- tone
- Neutral, Primary, On-Primary.
- 📐 Size
- size
- xs to lg.
Accessibility
What the code in src/ui does today, and what it leaves to you.
Keyboard
- Not focusable.
Screen readers
- role=status with a hidden label, so Loading is announced once.
What you still need to do
- Use it inline or in a button. For a whole area, use Skeleton; for measurable progress, use Progress Bar.
- Motion stops for people who ask for reduced motion; the static ring still shows.
When to use
Short waits. For longer operations, consider a progress bar with more context.
Do and don't
Do
- Pair with a label when the wait may be longer than a second or two.
- Use consistent sizing across similar contexts.
Don't
- Use a spinner for waits long enough to need progress feedback.
- Leave the user without any indication that something is happening.
Related
4 of 16 other atoms, same role and ready ones first.
- AvatarA visual representation of a user, team, or entity.Ready
- BadgeA small label used to highlight status, category, or count.Ready
- BreadcrumbsShows the user's location within a hierarchy and allows quick backtracking.Ready
- ButtonTrigger an action or event, such as submitting a form or opening a dialog.Ready
Status reflects the component tracker snapshot of 29 October 2026.