Skeleton

An animated placeholder that mimics the layout of content while it loads, reducing perceived wait time.

import { Skeleton } from "@/components/ui/skeleton";

export default function SkeletonDemo() {
  return (
    <div className="flex items-center gap-3">
      <Skeleton className="size-10 rounded-full" />
      <div className="space-y-2">
        <Skeleton className="h-3 w-56" />
        <Skeleton className="h-3 w-48" />
      </div>
    </div>
  );
}

Installation

Usage

import { Skeleton } from "@/components/ui/skeleton";
<Skeleton className="size-12" />