About
A card-style radio button group for single-selection choices, supporting an optional icon, label, description and trailing addon per option.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Radio Card to your project and fits it to your theme.
Code
How Radio Card is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { RadioCard, RadioCardItem } from "@/components/ui/radio-card";
import { MdViewModule, MdViewList, MdGridView } from "react-icons/md";
export default function RadioCardLayoutDemo() {
return (
<RadioCard defaultValue="grid" className="grid-cols-3 max-w-2xl">
<RadioCardItem
value="module"
icon={<MdViewModule className="size-5 text-icon" />}
label="Module"
description="Card-based layout"
/>
<RadioCardItem
value="list"
icon={<MdViewList className="size-5 text-icon" />}
label="List"
description="Detailed list view"
/>
<RadioCardItem
value="grid"
icon={<MdGridView className="size-5 text-icon" />}
label="Grid"
description="Compact grid view"
/>
</RadioCard>
);
}



