Skip to content
LoidoltTheme 0.11.1
Svelte 5

Component

Spinner

A small activity indicator.

import { Spinner } from '@loidolt/theme-svelte';

Example

Generating preview

Notes

  • Without size it 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.

Spinner props
PropTypeDefaultNotes
class string—
label string'Loading'Accessible name. Pass undefined when an adjacent label already announces the wait.
ref bindableHTMLSpanElement | nullnull
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.