Spinner
Progressv1.0.0
stable
A loading indicator for async operations and data fetching.
Variants
Loading...
primary
Loading...
secondary
Loading...
white
Sizes
Loading...
sm
Loading...
md
Loading...
lg
Loading...
xl
npx inam-ui add spinnerUsage Examples
Default Spinner
Medium primary spinner
<Spinner />Sizes
Different spinner sizes
<Spinner size="sm" />
<Spinner size="lg" />
<Spinner size="xl" />Accessibility
ARIA Labels
role='status'aria-label='Loading'
Screen Reader
Spinners should have an aria-label to indicate the loading state.
Props
| Name | Type | Default | Description |
|---|---|---|---|
size | 'sm' | 'md' | 'lg' | 'xl' | 'md' | Size of the spinner. |
variant | 'primary' | 'secondary' | 'white' | 'primary' | Color variant of the spinner. |