StorybookGitHub

Skeleton

Use to show a placeholder while content is loading.

Installation

npx shadcn@latest add https://reactdocs.canceydejean.dev/r/skeleton.json

Usage

Compose rectangles and circles with size utilities to match the target layout.

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

export function Example() {
  return (
    <div className="flex items-center gap-4">
      <Skeleton className="size-12 rounded-full" />
      <div className="grid gap-2">
        <Skeleton className="h-4 w-[200px]" />
        <Skeleton className="h-4 w-[160px]" />
      </div>
    </div>
  );
}

Uses animate-pulse and the muted surface token. No external dependencies.