Loader

Preview

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/loader

API Reference

variant?
"scramble" | "spinner" | "dots" | "bars" | "dot-matrix" | "dither" | "ascii" | "ascii-line" | "ascii-braille" | "ascii-blocks" | "ascii-bounce" | "morph" | "comet" | "metaballs" | "newton" | "helix" | "percent"

Which animation to render.

Defaultspinner
size?
number

Base square size in px. Everything scales from this.

Default32
speed?
number

Seconds per animation cycle.

Default1
label?
string

Accessible label announced to screen readers.

Default—
labels?
Partial<{ label: string; scramble: string; }>

Override any built-in string.

Default—
className?
string
Default—
Also on React Native. Seventeen indicators from one size prop.

Updated