Adres
Playground/ docs
Components

Spinner

Sizes, colors, in-button and in-context usage, custom labels, and reduced-motion behaviour.

Spinner

Sizes

sm
md
lg
xl

Colors

Primary
Muted
Success
Error

In buttons

When the Button's text already announces the state (Saving / Loading), pass decorative on the Spinner so screen readers don't double-announce.

In context

Inline next to visible status text — same rule applies, mark the spinner decorative so the announcement comes from the actual message, not the generic "Loading".

Fetching latest listings…
Running AI match analysis…
Loading property details

Standalone with custom label

When the spinner appears without a visible label, set label so the screen-reader announcement is meaningful and translatable. The default "Loading" works but is generic.

default · "Loading"
label="Saving changes"
label="Cargando" (i18n)

Reduced motion

Under prefers-reduced-motion: reduce, the spin slows to a 3-second cycle (from the default ~1s). The loading semantic stays — only the motion intensity drops. Enable the OS-level setting to see the effect.

Same spinner — motion adapts automatically