Mahmoud Ilyan

Radio Card

Pricing

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 { MdRocketLaunch, MdSpeed, MdStar } from "react-icons/md";

export default function RadioCardIconsDemo() {
  return (
    <RadioCard defaultValue="pro" className="max-w-md">
      <RadioCardItem
        value="starter"
        icon={<MdRocketLaunch className="size-5 text-icon" />}
        label="Starter"
        description="Up to 1,000 contacts"
      />
      <RadioCardItem
        value="pro"
        icon={<MdSpeed className="size-5 text-icon" />}
        label="Pro"
        description="Up to 10,000 contacts"
      />
      <RadioCardItem
        value="enterprise"
        icon={<MdStar className="size-5 text-icon" />}
        label="Enterprise"
        description="Unlimited contacts"
      />
    </RadioCard>
  );
}

Dependencies

More by Mahmoud Ilyan

View all
  • Steps

    Steps

    5
  • Switch

    Switch

    1
  • Textarea

    Textarea

  • Segmented Control

    Segmented Control

  • Checkbox

    Checkbox

  • Avatar

    Avatar

More in Pricing

View all
  • Pricing Section

    Pricing Section

    691
  • Colorful-Pricing

    Colorful-Pricing

    93
  • Pricing Section

    Pricing Section

    201
  • Pricing Card

    Pricing Card

    391
  • pricing section

    pricing section

    175
  • RuixenPricing05

    RuixenPricing05

    117
  • Single Pricing Card

    Single Pricing Card

    818
  • Pricing Cards

    Pricing Cards

    33