vael-ui v0.3.10

Feedback

Loader

A small spinner for indicating that something is in progress.

Install

import { Loader } from 'vael-ui'

Playground

import { Loader } from 'vael-ui'

<Loader size="1rem" label="">Loader</Loader>

Props

NameTypeDefaultDescription
sizestring | undefinedAny CSS length. Sets the root's font-size — the ring is sized in `em`, so it scales with it.
labelstring | undefinedRenders role="status" with visually-hidden text as the accessible name. Omit to make the loader aria-hidden.
uiPartial<{ root: UiPartValue; }> | undefined

Slots

No slots.

Events

No events.

Exposed

NameTypeDescription
elHTMLElement | null