Sizes and colors
Preview
Code
Installation
Package
CLI (copy source)
pnpm
pnpm add @advui/corenpm
npm install @advui/coreUsage
import { Spinner } from '@advui/core'
<Spinner label="Loading orders" />API reference
Spinner
| Prop | Type | Default | Description |
|---|---|---|---|
size | 'sm' | 'md' | 'lg' | 'md' | 16, 20 or 28px. |
color | string | — | Theme token (e.g. `primary`) or color. Defaults to the text color. |
label | string | 'Loading' | Accessible name. |
Accessibility
- Exposes
role="progressbar"with an accessible name andaria-busy. - With reduced motion the spinner keeps rotating, but slower, because it communicates state.
Platform notes
Web
Lightweight CSS-animated SVG (no JS animation).
iOS
Native
ActivityIndicator.Android
Native
ActivityIndicator.