Spinner
Signals that work is running when the remaining time is unknown.
Variants
4 examplesAdd to your project
One command adds this component to your project.
Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.
npx shadcn@latest add @aicanvas/••••••••••••Light and dark both come with the install and follow the dark class on <html>, the shadcn dark mode setup (next-themes with attribute="class").
Props
Every prop this component accepts. Any other prop is forwarded to the underlying element.
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | 'default'|'accent'|'warning'|'fault' | 'default' | One of: default, accent, warning, fault. |
| size | 'sm'|'md'|'lg' | 'md' | One of: sm, md, lg. |
| label | string | 'Loading' | Accessible label. |
| className | string | - | Additional CSS classes applied to the root element. |
| style | React.CSSProperties | - | Inline styles applied to the root element. |