Spinner

Feedback

An animated loading indicator communicating that a process is in progress.

Preview

Loading…

Props API

PropTypeDefaultDescription
sizeselect"xs" | "sm" | "md" | "lg" | "xl""md"Size of the spinner
variantselect"primary" | "muted" | "white""primary"Color variant
labelstring"Loading…"Accessible label for screen readers
showLabelbooleanfalseRenders the label visibly below the spinner

Usage

Use spinners for indeterminate loading states where progress cannot be measured. For known durations, a progress bar communicates more. Always provide a meaningful label describing what is loading.

Accessibility

  • Has role="status" and aria-label so screen readers announce the loading state.

  • The visually hidden label is always present for assistive technologies.