Skeleton

A grey placeholder that pulses while content loads.

@cupertinoui/skeletonRegistry JSON

Installation

pnpm dlx shadcn@latest add @cupertinoui/skeleton

The first install also adds the macOS theme. See Installation to set up the registry.

Usage

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

<Skeleton className="h-3 w-40" />

API Reference

Every part forwards the props of the underlying element. The props below are the ones CupertinoUI adds or changes.

Skeleton

PropTypeDescription
classNamestringExtra classes, merged with the component's own.