Preet Suthar

Skeleton

Cards 17

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

    919
  • Toolbar

    Toolbar

    868
  • Hero 2

    Hero 2

    865
  • Typewriter Text

    Typewriter Text

    820
  • AI Chat Input

    AI Chat Input

    792
  • Full Screen Signup

    Full Screen Signup

    776

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Photo Deck

    Photo Deck

    47
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198