Skeleton

Loading placeholders with a soft sweep of light: blocks, avatars and text lines.

no dependenciesMIT · free

Installation

npx shadcn@latest add https://ombakui.com/r/skeleton.json

Usage

import { Skeleton } from "@/components/skeleton";

<Skeleton variant="circle" />
<Skeleton className="h-40" />
<Skeleton variant="text" lines={3} />

Props

PropTypeDefaultDescription
variant"rect" | "circle" | "text""rect"Shape preset.
linesnumber3Number of lines for the text variant. The last line is shorter.
classNamestring–Size and layout classes, e.g. "h-32 w-full" or "size-12".
styleCSSProperties–