Spinner
Loading spinner animation
Accessibility
- Do not rely on transient feedback as the only place critical workflow information appears.
- Label dismiss or retry actions explicitly so their purpose is announced.
Styled quick start
Copy this entrypoint first. It includes the imports required to get the component on screen.
svelte
<script lang="ts">
import '@dryui/ui/themes/default.css';
import '@dryui/ui/themes/dark.css';
import { Spinner } from '@dryui/ui';
</script>
<Spinner size="md" /> Import options
Root package
ts
import { Spinner } from '@dryui/ui' Per-component subpath
ts
import { Spinner } from '@dryui/ui/spinner' API
Props, CSS variables, and the public data attributes you can target when styling.
| Prop | Type | Description | Default | Required | Bindable |
|---|---|---|---|---|---|
| size | smmdlg | Size preset affecting density, spacing, or typography. | 'md' | — | — |
| color | primarycurrent | Semantic color or tone applied to the component. | 'primary' | — | — |
| label | string | Visible label text shown for the control or item. | 'Loading' | — | — |