Preet Suthar

Skeleton

Cards 16

About

Display placeholder content while loading to improve perceived performance.

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,
  SkeletonText,
  SkeletonAvatar,
  SkeletonButton,
  SkeletonCard
} from "@/components/ui/skeleton";

export default function DemoOne() {
  return (
    <div className="rounded-lg border p-4 sm:p-6 space-y-4">
      <div className="flex flex-col sm:flex-row items-start sm:items-center space-y-4 sm:space-y-0 sm:space-x-4">
        <SkeletonAvatar size="lg" />
        <div className="space-y-2 flex-1 w-full">
          <Skeleton className="h-4 w-full sm:w-1/3" />
          <Skeleton className="h-3 w-3/4 sm:w-1/2" />
        </div>
      </div>
      <div className="space-y-2">
        <Skeleton className="h-4 w-full" />
        <Skeleton className="h-4 w-4/5" />
        <Skeleton className="h-4 w-3/5" />
      </div>
      <div className="flex flex-col sm:flex-row justify-between gap-4">
        <SkeletonButton size="sm" />
        <SkeletonButton size="sm" />
      </div>
    </div>
  )
}

Dependencies

More by Preet Suthar

View all
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.8K
  • Shining Text

    Shining Text

    1.7K
  • Magic Text

    Magic Text

    894
  • Toolbar

    Toolbar

    860
  • Hero 2

    Hero 2

    858
  • Typewriter Text

    Typewriter Text

    809
  • AI Chat Input

    AI Chat Input

    779
  • Full Screen Signup

    Full Screen Signup

    763

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Card Studio

    Card Studio

    11
  • Statistics Card 2

    Statistics Card 2

    304
  • Statistics Card 7

    Statistics Card 7

    326
  • Card

    Card

    18
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    604
  • Card

    Card

    59
  • Stats cards with links

    Stats cards with links

    95