Skip to content

Spinner

SSpinner is a loading indicator (a spinning ring). Pure CSS. It is decorative by default (aria-hidden); set label to announce the loading state to screen readers (role="status").

Sizes and variants

In a button

Color

The color prop sets a color from the palette and overrides variant.

API

Props

NameTypeDefaultDescription
size"md" | "sm" | "lg""md"Size: sm, md, or lg.
variant | "primary" | "neutral" | "current""primary"Color: accent (primary), neutral (neutral), or inherited (current).
colorstringundefinedAccent color: a name from the palette (primary/teal/teal-10). Overrides variant.
labelstringundefinedAccessible name for screen readers (otherwise the spinner is decorative).