v0.1 public beta early access on GitHub
Home / Components / loader

LoaderAndroid

Spinner, dots, bars, pulse, ring and metaball loaders that respect reduced motion.

$ npx lumioui add loader
import { Loader } from "@/components/ui/loader/loader";
Loaderloader.tsx
loader/loader.tsx open

Live preview — the real component, driven by the props below.

Props6
variant? LoaderVariant Which animation to render. Default "spinner".
size? number Base square size in px. Everything scales from this. Default 32.
speed? number Seconds per animation cycle. Default 1.
label? string Accessible label announced to screen readers. Default "Loading".
color? "primary" | "foreground" | "mutedForeground" | "destructive" Color token to use. Default "primary".
className? string
Loader — Colorscolors.tsx
loader/variants/colors.tsx open

Spinner, dots, bars, pulse, ring and metaball loaders that respect reduced motion.

Loader — Contextcontext.tsx
loader/variants/context.tsx open

Spinner, dots, bars, pulse, ring and metaball loaders that respect reduced motion.

Loader — Sizessizes.tsx
loader/variants/sizes.tsx open

Spinner, dots, bars, pulse, ring and metaball loaders that respect reduced motion.

Loader — Variantsvariants.tsx
loader/variants/variants.tsx open

Spinner, dots, bars, pulse, ring and metaball loaders that respect reduced motion.