Spinner

An indeterminate loading indicator with a screen-reader label built in.

Loading…Loading…Loading…Loading…Loading…

Import#

import { Spinner } from "astralis-ui";

Color schemes#

The arc paints with the accent channel, so any scheme works.

Loading…Loading…Loading…Loading…Loading…

Props#

PropTypeDefaultDescription
size"xs" | "sm" | "md" | "lg" | "xl""md"Diameter.
colorSchemeall 11 schemes"brand"Hue of the spinning arc.
labelstring"Loading…"Visually-hidden text announced to screen readers.

Accessibility#

  • Renders role="status" with a visually-hidden label, so assistive tech announces the loading state without any extra wiring.
  • The arc keeps spinning under prefers-reduced-motion — it conveys state, not decoration. Pair long operations with Progress when you can report actual completion.