Skip to Content
ComponentsSpinner

Spinner

Animated 12-dot loading indicator. Renders role="status" with aria-label="Loading".

Preview

Usage

import { Spinner } from '@wire-ui/react' <Spinner /> <Spinner size="large" /> <Spinner size="small" color="#6366f1" />

Props

PropTypeDefaultDescription
size'small' | 'medium' | 'large''medium'Controls data-size
colorstringSets the --spinner-color CSS variable
...restHTMLAttributes<HTMLDivElement>Spread onto root element

CSS variable

The color prop sets --spinner-color on the root element. Override it in CSS if you prefer:

.my-spinner { --spinner-color: #6366f1; }

Accessibility

  • role="status" announces the loading state to screen readers
  • aria-label="Loading" provides a text description
Last updated on

MIT License © 2026 wire-ui