Spinner
Animated loading indicator.
Installation
npx @obi/ui add spinnerPreview
Loading…Loading…Loading…
Usage
import { Spinner } from '@/src/components/Spinner/Spinner';
<Spinner />
<Spinner size="sm" />
<Spinner size="lg" label="Saving…" />Props
| Name | Type | Default | Description |
|---|---|---|---|
| size | 'sm' | 'md' | 'lg' | 'md' | Size of the spinner. |
| label | string | 'Loading…' | Screen reader label. |
| className | string | '' | Additional CSS classes. |