Skip to content
v2.5.0
English
Русский
Documentation

Spinner

Spinner is the loading indicator for pending states and asynchronous actions.

Root Props

PropTypeDefault
sizeSpinnerSize3
Visual size of the spinner. Maps to a scalable design token or type scale. Accepts values from 1 (smallest) to 11 (largest).
variantSpinnerVariant'primary'
Visual color variant of the spinner.
refRef<HTMLDivElement>—
Ref to the spinner's root container. Useful for imperative DOM access or measurement.

Also accepts all <div> attributes.

Child Parts

  • None. Spinner is a single exported primitive.

Types

  • SpinnerProps
  • SpinnerSize
  • SpinnerVariant

State Model

  • Spinner has no internal state beyond its perpetual animation.
  • Meaning comes from surrounding loading state in the parent UI.