Skip to content

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

Open the full editor or source on GitHub.

◐ ← rotating ring
  • display — inline-block
  • width — content
  • height — content
  • intrinsicSize — 16/20/24/32px (sm/md/lg/xl)
  • stackable — true
  • fullBleed — false

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.

color.text.action.brand, color.text.muted

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-motion rather than stopping outright; a frozen spinner suggests “stuck”.
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

These are the AI prompt → JSX mappings used by the helix-ui prompt DSL and integrations like Cursor / Claude Code.

“small inline spinner”

<Spinner size="sm" />