Skip to content
Zuno UI
Explore components
EXPLORE
Actions
Forms
Layout
Navigation
Data display
Feedback
Overlays
RESOURCES
Components/Spinner

Spinner

A discreet indicator with an accessible, contextual description.

Installation

Run it from the root of a project already set up with zunoui init.

npx zunoui@latest add spinner

Dependencies

What add spinner installs alongside the component. The CLI skips any you already have in a compatible version.

ZUNO registry

  • @zuno/utils

Examples

1 examples · 1 component
spinner

Sizes and color

Inherits the text color; adjust the size with utilities.

API reference

Forwards props and ref to the container element; it only adds composition utilities.

PropTypeDefault
label

Accessible name of the status (role="status").

string"Loading"
className

Size and color through utilities.

string—

States

The states that apply to this component and their visual treatment.

StateTreatment
ActiveSpins and exposes role="status" with a configurable label.
Reduced motionStops with prefers-reduced-motion; it does not fake progress.

Accessibility

Exposes role="status" and a configurable aria-label; change the label to match the operation.

Stops with prefers-reduced-motion; it does not communicate made-up progress or percentages.