Spinner
Indicates indeterminate activity in controls and compact status regions.
@rivetui/spinnerPreview
Explore each composition interactively, then open its code in the same context.
Default
Communicate short, indeterminate work without shifting nearby content.
Note
The available sizes are
sm, md, and lg.Building deployment
Inside a control
Hide the decorative spinner from assistive technology when the button already names the action.
Registry
Installation
Add the component source and its declared dependencies with the shadcn CLI.
Install component
bunx --bun shadcn@latest add @rivetui/spinnerPublic interface
API reference
Component-specific props are listed here. Native element and Base UI props continue to pass through.
| Prop | Type | Default |
|---|---|---|
size | "sm" | "md" | "lg" | "md" |
aria-label | string | "Loading" |
className | string | — |