Components

Skeleton

A pulsing placeholder that mirrors the shape of loading content.

Installation

npx shadcn@latest add @fujin/skeleton

Usage

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

When not to use

The shape of what's loading is unknown, or the region is small - use spinner instead. A busy button already has <Button loading> built in.

On this page