Mahmoud Ilyan

Card

Cards 2

About

A bounded surface container with header, title, description, content and footer sections for grouping related content like stats, summaries, and previews.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Card to your project and fits it to your theme.

Code

How Card is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import Card, { CardContent } from "@/components/ui/card";

const stats = [
  { label: "Sent", value: "13,796" },
  { label: "Opened", value: "2,197 · 15.92%" },
  { label: "Unique Clicks", value: "49 · 0.21%" },
];

export default function CardDemo() {
  return (
    <div className="grid w-full max-w-2xl gap-4 sm:grid-cols-3">
      {stats.map((stat) => (
        <Card key={stat.label}>
          <CardContent className="p-4">
            <p className="text-xs font-medium uppercase tracking-wide text-ink-light">
              {stat.label}
            </p>
            <p className="mt-1 text-lg font-semibold text-ink-dark">
              {stat.value}
            </p>
          </CardContent>
        </Card>
      ))}
    </div>
  );
}

More by Mahmoud Ilyan

View all
  • Steps

    Steps

    7
  • Chart

    Chart

    3
  • Radio Card

    Radio Card

    2
  • Badge

    Badge

    2
  • Switch

    Switch

    1
  • Checkbox Card

    Checkbox Card

    1
  • Input

    Input

    1
  • Textarea

    Textarea

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