Skip to content
Ballpoint

Skeleton

A placeholder pencilled in with hatching the pen keeps going back over.

From shadcn/ui

Installation

pnpm dlx shadcn@latest add @ballpoint/skeleton

Usage

tsx
import { Skeleton } from "@/components/ui/skeleton"

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

Examples

Card placeholder

The shape of a card while its content loads.

Text

A heading and paragraphs of placeholder lines, each a different length.

A list

Round avatars with a name and two lines of text, three times over.

API reference

className
string

Size and shape it: rounded-full makes a round placeholder.

SkeletonText lines
default 3
number

A paragraph of placeholder: this many lines, the last one shorter, each a different width.

seed
string | number

Pins the hatching.