FEEDBACK
Spinner
Lightweight SVG spinner with an accessible role="status" announcement. Use for compact, indeterminate loading states inside buttons, list rows or tooltips. For full bars reach for Progress.
Import
Sizes
Color override
Spinner uses currentColor — change the wrapper's text color to retint.
Props
Spinner props
| Prop | Type | Default | Description |
|---|---|---|---|
| size | number | string | 20 | Width and height of the SVG. Pass any number (px) or CSS unit string. |
| label | string | 'Caricamento…' | Accessible name announced by screen readers (aria-label). Localize for non-Italian UIs. |
| className | string | — | Tailwind classes are merged on top of the spin animation + primary color. |
Accessibility
- Renders
role="status"with the suppliedlabelasaria-label. - For inline use inside a labelled button, set
label=""and rely on the button's own text — avoid duplicate announcements.