Skeleton

Pulsing placeholder block for loading states. Set dimensions via className.

Default

<Skeleton className="h-4 w-48" />

Card placeholder

<div className="flex items-center gap-4">
  <Skeleton className="size-12 rounded-full" />
  <div className="space-y-2">
    <Skeleton className="h-4 w-40" />
    <Skeleton className="h-4 w-24" />
  </div>
</div>

Props

PropType / note
classNamestring — set width/height/shape (e.g. `h-4 w-32`, `size-10 rounded-full`)
...restStandard `<div>` attributes are forwarded.

Source

packages/react/src/components/skeleton.tsx · adapted from shadcn