Display
Skeleton
A pulsing block that stands in for content while it loads.
LiveRev. 01
Installation
CLI
$ npx shadcn@latest add https://konsa.rohitxyz.me/r/skeleton.jsonManual
Copy the source into your project
components/ui/skeleton.tsx
import * as React from "react";
import { cn } from "@/lib/utils";
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="skeleton"
className={cn("animate-pulse rounded-md bg-muted", className)}
{...props}
/>
);
}
export { Skeleton };Update the import paths to match your project
The file imports cn from @/lib/utils. See installation.
Usage
import { Skeleton } from "@/components/ui/skeleton";<Skeleton className="h-4 w-48" />