Skip to content
shadcn.io
shadcn.io is not affiliated with official shadcn/ui

Shadcn Skeleton for React and Tailwind

Displays a loading state.

Installation

bunx --bun shadcn@latest add https://kit.dev/r/skeleton.json

Usage

import { 
  Skeleton,
  SkeletonCircle,
  SkeletonText,
} from "@/components/ui/skeleton";
<SkeletonCircle />
<SkeletonText />
<Skeleton />

Examples

Skeleton

Rectangular skeleton placeholder.

Circle

Circular skeleton placeholder.

Text

Use the lines prop to control the number of placeholder lines; the last line is shorter by default.

Loading cards

API Reference

Skeleton

Rectangular loading placeholder.

PropTypeDefault
classNamestring-
asChildboolean-

SkeletonCircle

Circular loading placeholder.

PropTypeDefault
classNamestring-
asChildboolean-

SkeletonText

Multi-line text placeholder. Last line is shorter by default to mimic text.

PropTypeDefault
linesnumber2
classNamestring-
asChildboolean-

For a complete list of props, see the Ark UI documentation.