bearnie

Skeleton

Placeholder shown while content loads.

Installation

npx bearnie add skeleton
npx bearnie add skeleton

Usage

import { Skeleton } from "@/components/ui/skeleton"
<Skeleton class="h-4 w-[200px]" />

Examples

Card

With avatar

Anatomy

  • Skeleton - A single placeholder element

Props

Skeleton

PropTypeDefaultDescription
classstring-Width, height, and shape classes

Use Tailwind classes like h-4, w-[200px], rounded-full to control dimensions and shape.