An animated loading indicator. Use it to signal that an async operation is in progress.
import Spinner from "@radui/ui/Spinner"- An animated indicator with a size prop that follows the theme scale
- Keeps turning under prefers-reduced-motion, because it tells people something is happening
- Give it a label with aria-label, or hide it with aria-hidden next to a text status
Import all parts of the component and piece them together.
An animated loading indicator.
| Prop | Type | Default |
|---|---|---|
size | string | "" |
customRootClass | string | "" |
className | string | "" |
aria-label | string | "Loading" |
aria-labelledby | string | — |
aria-hidden | boolean | false |