Component
Spinner
A small activity indicator.
import { Spinner } from '@loidolt/theme-svelte';
Example
Generating preview
Notes
- Without
sizeit follows the surrounding font size, which suits a spinner inside a button.
Props
Generated from the component source, so it cannot drift from the implementation.
| Prop | Type | Default | Notes |
|---|---|---|---|
class | string | — | |
label | string | 'Loading' | Accessible name. Pass undefined when an adjacent label already announces the wait. |
ref bindable | HTMLSpanElement | null | null | |
size | ControlSize | — | Omit to follow the surrounding font size, which suits a spinner inside a button. |
Plus the attributes of HTMLAttributes<HTMLSpanElement>, forwarded to the root element.