Mahmoud Ilyan

Radio Card

Forms

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";

export default function RadioCardDisabledDemo() {
  return (
    <RadioCard defaultValue="active" className="max-w-md">
      <RadioCardItem
        value="active"
        label="Active Option"
        description="This option can be selected"
      />
      <RadioCardItem
        value="disabled"
        label="Disabled Option"
        description="This option is not available"
        disabled
      />
    </RadioCard>
  );
}

Dependencies

More by Mahmoud Ilyan

View all
  • Switch

    Switch

  • Segmented Control

    Segmented Control

  • Checkbox

    Checkbox

  • Avatar

    Avatar

More in Forms

View all
  • Premium Auth

    Premium Auth

    562
  • Book A Demo 1

    Book A Demo 1

    90
  • Book A Demo 3

    Book A Demo 3

    101
  • Contact Card

    Contact Card

    1.1K
  • Card Studio

    Card Studio

    46
  • Form

    Form

    139
  • Authentication Card

    Authentication Card

    51
  • Form

    Form

    3