Skeleton
A muted placeholder that pulses where content is loading, on the 8 px row radius.
Installation
$ pnpm dlx shadcn@latest add @videorc/skeletonUsage
import { Skeleton } from "@/components/ui/skeleton";<Skeleton className="h-4 w-44" />Theming
| Token or attribute | Meaning |
|---|---|
bg-muted | The placeholder fill |
rounded-row | The 8 px row radius; pass rounded-full for a round picture |
animate-pulse | The pulse, which reduced motion stops |
Accessibility
A skeleton is decoration. Announce the loading once, on the region it fills (aria-busy), or with a Spinner.