About
A pulsing placeholder block for rectangular, circular, or text-shaped content that shows while real data is still loading.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Skeleton to your project and fits it to your theme.
Code
How Skeleton is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import Skeleton from "@/components/ui/skeleton";
export default function SkeletonDemo() {
return (
<div className="w-full max-w-3xl mx-auto grid grid-cols-1 sm:grid-cols-2 gap-5 p-6">
<div className="qhr-card" style={{ padding: 24 }}>
<div
className="flex items-center gap-3.5"
style={{ marginBlockEnd: 16 }}
>
<Skeleton shape="circular" width={52} height={52} />
<div style={{ flex: 1 }}>
<Skeleton shape="text" width="60%" height={16} />
<Skeleton shape="text" width="40%" height={12} className="mt-1.5" />
</div>
</div>
<Skeleton shape="text" width="100%" className="mb-2" />
<Skeleton shape="text" width="90%" className="mb-2" />
<Skeleton shape="text" width="65%" />
</div>
<div className="qhr-card" style={{ padding: 20 }}>
<Skeleton
shape="rectangular"
width="100%"
height={130}
className="mb-4"
/>
<Skeleton shape="text" width="65%" height="1.5rem" className="mb-2" />
<Skeleton shape="text" width="100%" />
<Skeleton shape="text" width="75%" />
</div>
</div>
);
}















