adit-firdaus

Adaptive Card

Cards

About

A surface container with header, title, description, body and footer slots for grouping related content, supporting elevated, grouped, nested and plain variants plus an optional interactive button mode.

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

Code

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

Usage.tsx

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

export default function CardVariantsDemo() {
  return (
    <div className="may-root" style={{ padding: 32 }}>
      <div
        style={{
          display: "flex",
          flexDirection: "column",
          gap: "var(--may-space-4)",
          maxWidth: 420,
        }}
      >
        <Card variant="elevated">
          <CardTitle>Elevated</CardTitle>
          <CardDescription>
            Floats above the page. The only variant that casts a shadow.
          </CardDescription>
        </Card>
        <Card variant="grouped">
          <CardTitle>Grouped</CardTitle>
          <CardDescription>
            The settings-style card — separated by value alone.
          </CardDescription>
        </Card>
        <Card variant="grouped" padding="sm">
          <Card variant="nested">
            <CardTitle>Nested</CardTitle>
            <CardDescription>
              The fill a card takes when it sits inside another card.
            </CardDescription>
          </Card>
        </Card>
        <Card variant="plain">
          <CardTitle>Plain</CardTitle>
          <CardDescription>Structure without a surface.</CardDescription>
        </Card>
      </div>
    </div>
  );
}

More by adit-firdaus

View all
  • Steps

    Steps

    28
  • Popover

    Popover

    3
  • Box

    Box

  • Pagination

    Pagination

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Statistics Card 7

    Statistics Card 7

    327
  • Statistics Card 2

    Statistics Card 2

    305
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    625
  • Card Studio

    Card Studio

    5
  • The Item one

    The Item one

    4
  • Weather Card

    Weather Card

    65
  • Card

    Card

    9