Skip to content
bref / ui

Svelte components, simply.

Star

Spinner

Show loading status or a decorative animated ring.

Usage

Loading results
Svelte
<Spinner label="Loading results" />

Playground

Live preview

Loading results

Settings

Appearance
Accessibility
View generated code
Svelte
<script>
	import { Spinner } from 'bref-ui';
</script>

<span style="color: var(--color-primary); font-size: 2rem"
	><Spinner size="medium" label={'Loading results'} /></span
>

Sizes

Unlabeled, inherited size
Loading x-small
x-small
Loading small
small
Loading medium
medium
Loading large
large
Loading x-large
x-large

Inherited colors

Loading foreground results
foreground
Loading primary results
primary
Loading secondary results
secondary
Loading muted results
muted
Loading info results
info
Loading success results
success
Loading warning results
warning
Loading error results
error
Svelte
<span style="color: var(--color-primary)"><Spinner label="Loading results" /></span>

Props and accessibility

Component props
PropTypeRequiredDefaultDescription
labelstringNo—Optional screen reader status text; omit for a decorative ring.
sizeSizeNoInheritedMatches Icon sizes; omitted size inherits surrounding font size.

The ring inherits the surrounding text color. A supplied label creates status text for assistive technology; an unlabeled ring is decorative. Reduced motion leaves a visible, stationary quarter-ring.