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.6K
  • Shining Text

    Shining Text

    1.6K
  • Magic Text

    Magic Text

    858
  • Toolbar

    Toolbar

    834
  • Hero 2

    Hero 2

    824
  • Typewriter Text

    Typewriter Text

    786
  • Full Screen Signup

    Full Screen Signup

    751
  • AI Chat Input

    AI Chat Input

    746

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.1K
  • Statistics Card 7

    Statistics Card 7

    301
  • Statistics Card 2

    Statistics Card 2

    272
  • Stats cards with links

    Stats cards with links

    82
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    183
  • Card Studio

    Card Studio

    35
  • Card

    Card

    70
  • Card

    Card

    18