Spinner

A spinner component used to indicate loading or progress states in an application.

Usage

Default


<Spinner />

Props

Data table
TypeDescription
aria-busybooleanWhether the related region is busy. Defaults to true.
aria-describedbystringID of element(s) that describe the spinner.
aria-labelstringAccessible label announced by screen readers. Falls back to `label`, then "Loading".
aria-labelledbystringID of element(s) that label the spinner. Takes precedence over `aria-label` when provided.
aria-live"off" | "polite" | "assertive"ARIA live region politeness. Defaults to "polite".
classNamestringAdditional class names for styling customization.
data-testidstringTest ID for testing frameworks (e.g., for use with Jest or Cypress).
labelstringOptional visible label for the spinner.
roleReact.AriaRoleOptional ARIA role. Defaults to "status".
shadowShadowTypeShadow style for the spinner. One of: "none" | "light" | "medium" | "strong" | "intense"
sizenumberThe size of the spinner (in pixels).
stateStateTypeThe state of the spinner. One of: "success" | "error" | "warning" | "disabled" | ""
themeThemeTypeThe theme color of the spinner. One of: "primary" | "secondary" | "tertiary" | "quaternary" | "clear"