Documentation menu

Skeleton

A flexible placeholder for cards, avatars, media, and custom layouts.

Installation

pnpm dlx shadcn@latest add https://loading.design/r/skeleton.json

Usage

import { Skeleton } from "@/components/loading/skeleton"
<Skeleton width={"100%"} height={20} radius={8} animated={true} />

API

PropTypeDefaultDescription
widthstring100%Placeholder width as a CSS length or percentage.
heightnumber20Placeholder height in pixels.
radiusnumber8Corner radius in pixels. Use a large value for a pill or circle.
animatedbooleantrueWhether to apply a subtle opacity pulse.

Accessibility

The skeleton is hidden from assistive technology. Apply aria-busy to the region it represents and retain a stable accessible name for that region.