Skip to content
Browse docs and components

Loader

loader

Eight loading indicators — ring, dots, bars, a dot-grid wave and orbit, a terminal braille spinner, a figure-eight comet and sparkles. Pure CSS in a server component, sized in em and coloured by currentColor, with a still frame under reduced motion.

Responsive

Install

$npxshadcnadd@forme/loader

Adds the component, its registry dependencies, and the token stylesheet you import once.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

Loader

Something is happening; here is the shape of the wait.

PropTypeDefaultDescription
variant'ring' | 'dots' | 'bars' | 'wave' | 'orbit' | 'braille' | 'infinity' | 'sparkle'"ring"
labelstring"Loading"Announced to screen readers. Pass "" when a visible label beside the loader already says what is happening, so it is not read twice.
sizenumber—Size in pixels. Without it the loader is 1em, so it matches the text around it.
classNamestring—