alwkala

Card

Cards

About

A content container with optional header, title, description, body and footer slots for grouping related information and actions into a bordered, elevated surface.

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,
  CardHeader,
  CardTitle,
  CardDescription,
  CardBody,
  CardFooter,
} from "@/components/ui/card";

export default function CardDemo() {
  return (
    <div className="flex w-full items-center justify-center p-8">
      <Card variant="elevated" className="w-full max-w-sm">
        <CardHeader>
          <div>
            <CardTitle>Sovereign Design Tokens</CardTitle>
            <CardDescription>Qahera UI Kit · v1.0.0</CardDescription>
          </div>
        </CardHeader>
        <CardBody>
          <p className="text-sm leading-relaxed text-[var(--qhr-content-secondary,#64748b)]">
            A three-layer semantic token system with logical properties, built
            for authentic RTL support across every component.
          </p>
        </CardBody>
        <CardFooter>
          <span className="text-xs text-[var(--qhr-content-secondary,#64748b)]">
            Updated 2 days ago
          </span>
          <a
            href="#"
            className="text-sm font-semibold text-[var(--qhr-color-primary,#0b6bcb)] hover:underline"
          >
            View docs
          </a>
        </CardFooter>
      </Card>
    </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