Spinner
Spinner
Section titled “Spinner”Category: Feedback
<Spinner /><Spinner size="lg" tone="brand" /><Button><Spinner size="sm" /> Loading…</Button>Install: @helix-ui/core
import { Spinner } from '@helix-ui/core';status: stable · since: 0.1.0
Tags: loading, spinner, indicator
Live playground
Section titled “Live playground”Open the full editor or source on GitHub.
Anatomy
Section titled “Anatomy”◐ ← rotating ringLayout
Section titled “Layout”- display —
inline-block - width —
content - height —
content - intrinsicSize —
16/20/24/32px (sm/md/lg/xl) - stackable —
true - fullBleed —
false
Visual
Section titled “Visual”A circular progress ring with a rotating gap. Color follows currentColor. Animation respects prefers-reduced-motion.
| Name | Type | Default | Description |
|---|---|---|---|
size |
'sm' | 'md' | 'lg' |
md |
Visual size. |
tone |
'current' | 'brand' | 'neutral' |
current |
Color. current inherits from CSS color. |
label |
string |
Loading |
Accessible name announced by screen readers. |
Tokens used
Section titled “Tokens used”color.text.action.brand, color.text.muted
Accessibility
Section titled “Accessibility”Role: status
Notes
- For determinate progress, use a different component (helix-ui does not yet ship one — use the native
<progress>for now). - Animation duration extends under
prefers-reduced-motionrather than stopping outright; a frozen spinner suggests “stuck”.
Composes with
Section titled “Composes with”| Component | Relation | Note |
|---|---|---|
Button |
child |
Inside a Button when the action is in flight. |
ProgressBar |
alternative |
ProgressBar when there is a known value or this takes long. |
Skeleton |
sibling |
Prompt examples
Section titled “Prompt examples”These are the AI prompt → JSX mappings used by the helix-ui prompt DSL and integrations like Cursor / Claude Code.
loading indicator
Section titled “loading indicator”“small inline spinner”
<Spinner size="sm" />