alwkala

Skeleton

Cards

About

A pulsing placeholder block for rectangular, circular, or text-shaped content that shows while real data is still loading.

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 from "@/components/ui/skeleton";

export default function SkeletonDemo() {
  return (
    <div className="w-full max-w-3xl mx-auto grid grid-cols-1 sm:grid-cols-2 gap-5 p-6">
      <div className="qhr-card" style={{ padding: 24 }}>
        <div
          className="flex items-center gap-3.5"
          style={{ marginBlockEnd: 16 }}
        >
          <Skeleton shape="circular" width={52} height={52} />
          <div style={{ flex: 1 }}>
            <Skeleton shape="text" width="60%" height={16} />
            <Skeleton shape="text" width="40%" height={12} className="mt-1.5" />
          </div>
        </div>
        <Skeleton shape="text" width="100%" className="mb-2" />
        <Skeleton shape="text" width="90%" className="mb-2" />
        <Skeleton shape="text" width="65%" />
      </div>

      <div className="qhr-card" style={{ padding: 20 }}>
        <Skeleton
          shape="rectangular"
          width="100%"
          height={130}
          className="mb-4"
        />
        <Skeleton shape="text" width="65%" height="1.5rem" className="mb-2" />
        <Skeleton shape="text" width="100%" />
        <Skeleton shape="text" width="75%" />
      </div>
    </div>
  );
}

More by alwkala

View all
  • Callout

    Callout

    10
  • Progress Bar

    Progress Bar

    4
  • Breadcrumb

    Breadcrumb

    4
  • Spinner

    Spinner

    1
  • Accordion

    Accordion

    1
  • Navbar

    Navbar

    1
  • Kbd

    Kbd

  • Pagination

    Pagination

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    46
  • Course Design Cards

    Course Design Cards

    1.3K
  • Liquid Glass Card

    Liquid Glass Card

    202
  • Statistics Card 2

    Statistics Card 2

    321
  • Card Studio

    Card Studio

    37
  • Astryx Clickable Card

    Astryx Clickable Card

    1
  • Admin Dashboard Cards

    Admin Dashboard Cards

    40
  • Statistics Card 10

    Statistics Card 10

    307