Maud Benaddi

Role Flip Cards

Cards

About

Cards that turn on hover, focus or tap: an icon on a faded grid and a title in front, the story on the back.

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

Code

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

Usage.tsx

import { Gauge, Lightbulb, ShieldCheck, Wand2 } from "lucide-react";
import { RoleFlipCards } from "@/components/ui/role-flip-cards";

const settings = {
  accent: "#7f72e3",
  title: "Feature highlights",
  prompt: "How it works",
  feature1: "Feature A",
  text1: "This feature is not working well, because the C-level never gives us the time to test it properly.",
  feature2: "Feature B",
  text2: "This feature was never requested by users. It was our CEO's idea, and we apologise to our users.",
  feature3: "Feature C",
  text3: "This feature was vibe coded and shipped by a designer. Please send help.",
  feature4: "Feature D",
  text4: "This feature works perfectly. Nobody knows why, so nobody is allowed to touch it.",
};

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="w-full p-6">
      <h2 className="mb-8 text-3xl font-medium tracking-tight text-foreground">{s.title}</h2>
      <RoleFlipCards
        accent={s.accent}
        prompt={s.prompt}
        items={[
          { title: s.feature1, icon: Gauge, text: s.text1 },
          { title: s.feature2, icon: Lightbulb, text: s.text2 },
          { title: s.feature3, icon: Wand2, text: s.text3 },
          { title: s.feature4, icon: ShieldCheck, text: s.text4 },
        ]}
      />
    </div>
  );
}

Dependencies

More by Maud Benaddi

View all
  • Notched Project Card

    Notched Project Card

    257
  • Tool Mesh

    Tool Mesh

    29
  • Voice Orb

    Voice Orb

    1
  • Setup Checklist

    Setup Checklist

  • MCP Hub

    MCP Hub

  • Transcript to Prototype

    Transcript to Prototype

  • Workflow Pills

    Workflow Pills

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    33
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Statistics Card 2

    Statistics Card 2

    264
  • Statistics Card 10

    Statistics Card 10

    263
  • Card

    Card

    17
  • Card Studio

    Card Studio

    9
  • The Item one

    The Item one

    3