ComponentServer-safe
Spinner
A compact accessible loading indicator that inherits the current color.
Installation
Preview
Syncing tokens
Usage
tsx
import { Spinner } from "@/components/ui/spinner"
<button disabled>
<Spinner /> Publishing
</button>API reference
| Prop | Type | Default | Description |
|---|---|---|---|
aria-label | string | "Loading" | Accessible status label. |
className | string | — | Overrides or extends the generated Tailwind classes. |
disabled | boolean | false | Prevents user interaction when supported. |