Core Components
Skeleton
Use to show a placeholder while content is loading.
import { Skeleton } from "@/components/ui/skeleton"
export function SkeletonDemo() {
return (
<div className="flex items-center gap-4">
<Skeleton className="h-12 w-12 rounded-full" />
<div className="space-y-2">
<Skeleton className="h-4 w-62.5" />
<Skeleton className="h-4 w-50" />
</div>
</div>
)
}Installation
Install with the shadcn CLI. An AI assistant with the shadcn MCP server configured can also install components automatically when you ask for them (see Getting Started).
npx shadcn@latest add skeletonDocumentation
For all options, variants and the full API, see the shadcn/ui docs.
Last updated on