videorc/ui

Skeleton

A muted placeholder that pulses where content is loading, on the 8 px row radius.

Installation

$ pnpm dlx shadcn@latest add @videorc/skeleton

Usage

import { Skeleton } from "@/components/ui/skeleton";
<Skeleton className="h-4 w-44" />

Theming

Token or attributeMeaning
bg-mutedThe placeholder fill
rounded-rowThe 8 px row radius; pass rounded-full for a round picture
animate-pulseThe 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.