Utility
AI
Terminal
Installation
pnpm dlx shadcn@latest add https://termcn.dev/r/skeleton.json
Usage
import { Skeleton } from "@/components/ui/skeleton";<Skeleton width={30} height={3} />Examples
Static (No Animation)
Terminal
import { Skeleton } from "@/registry/ui/skeleton";
export default function SkeletonStatic() {
return <Skeleton width={20} height={2} animated={false} />;
}
API Reference
Skeleton
| Prop | Type | Default |
|---|---|---|
width | number | 20 |
height | number | 1 |
animated | boolean | true |