Feedback

Skeleton

Realistic placeholders that mirror the loaded layout.

Preview

Installation

Components are copied into your project — no runtime package.

  1. Create a skeleton.tsx file and paste the following code into it.

    src/components/ui/skeleton.tsx
    import { cx } from "@/utils/cx";
    
    /** Realistic placeholder that mirrors the loaded layout. */
    export function Skeleton({ className }: { className?: string }) {
      return <div aria-hidden className={cx("animate-shimmer rounded-xs bg-muted", className)} />;
    }
  2. Add the theme tokens and the cx helper from Installation if you haven’t yet, then update the import paths to match your project setup.