Loader
loaderEight 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.
import { Loader } from "@/components/forme/loader/loader";
import type { LoaderVariant } from "@/components/forme/loader/loader";
const variants: LoaderVariant[] = [
"ring",
"dots",
"bars",
"wave",
"orbit",
"braille",
"infinity",
"sparkle",
];
export function LoaderDemo() {
return (
<div className="flex w-full flex-col items-center gap-8">
<ul className="grid w-full max-w-xl grid-cols-2 gap-3 sm:grid-cols-4">
{variants.map((variant) => (
<li
key={variant}
className="flex flex-col items-center gap-3 rounded-xl border border-border bg-card lit edge py-5"
>
<Loader variant={variant} size={24} className="text-foreground" />
<span className="font-mono text-caption-1-regular text-muted-foreground">
{variant}
</span>
</li>
))}
</ul>
<div className="flex flex-wrap items-center justify-center gap-4">
<p className="flex items-center gap-2 text-body-regular text-foreground">
<Loader variant="dots" label="" />
Saving draft
</p>
<p className="flex items-center gap-2 text-body-regular text-muted-foreground">
<Loader variant="braille" label="" />
Indexing 1,284 files
</p>
</div>
</div>
);
}Install
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.
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'ring' | 'dots' | 'bars' | 'wave' | 'orbit' | 'braille' | 'infinity' | 'sparkle' | "ring" | |
label | string | "Loading" | Announced to screen readers. Pass "" when a visible label beside the loader already says what is happening, so it is not read twice. |
size | number | — | Size in pixels. Without it the loader is 1em, so it matches the text around it. |
className | string | — |
Related


Progress
A determinate progress bar with its label and value, both announced to a screen reader by the Base UI parts rather than by hand-written aria attributes. A null value renders as indeterminate and dims the track so it reads as waiting.
feedback

Reasoning
A model's visible thinking that opens while it thinks and folds away when the answer arrives, with a live timer and a 'Thought for 4s' summary. Once the reader opens or closes it, it stays where they left it.
feedback

Skeleton
A placeholder shaped like the content that is loading, with a single travelling shimmer. Hidden from screen readers, so the loading region announces itself once.
feedback