Skeleton

Animated placeholder block. Build loading states by stacking Skeletons in the rough shape of the eventual content.

Default

Single block.

Dark previewReplay previewOpen in new tab

Usage

Import the parts you need from the component's folder.

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

Avatar

A round media block beside two lines of text.

Dark previewReplay previewOpen in new tab

Card

Mimic the shape of a card-style item.

Dark previewReplay previewOpen in new tab

Text

Stacked lines with a shorter last line, like a paragraph.

Dark previewReplay previewOpen in new tab

Form

Label and control pairs plus a submit button.

Dark previewReplay previewOpen in new tab

Table

Repeat a row of blocks to stand in for tabular data.

Dark previewReplay previewOpen in new tab

API Reference

Skeleton

PropTypeDefaultDescription
classstring—Width, height, radius. Default is bg-muted with pulse animation.