Skeleton
skeletonA placeholder shaped like the content that is loading, with a single travelling shimmer. Hidden from screen readers, so the loading region announces itself once.
import { Skeleton } from "@/components/forme/skeleton/skeleton";
export function SkeletonDemo() {
return (
<div aria-busy="true" aria-label="Loading" className="flex w-full max-w-sm flex-col gap-5">
<div className="flex items-center gap-3">
<Skeleton className="size-10 rounded-full" />
<div className="flex flex-1 flex-col gap-2">
<Skeleton className="h-3.5 w-2/5" />
<Skeleton className="h-3 w-3/5" />
</div>
</div>
<Skeleton className="h-32 w-full rounded-2xl" />
<div className="flex flex-col gap-2">
<Skeleton className="h-3 w-full" />
<Skeleton className="h-3 w-11/12" />
<Skeleton className="h-3 w-4/6" />
</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.
Parts
SkeletonTakes<div>attributes
Related


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.
feedback

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

Alert
An inline message in four states, with a matching icon, an optional title and room for an action. Only the destructive state interrupts a screen reader; the rest wait their turn.
feedback