Mahmoud Ilyan

Checkbox Card

Cards

About

A card-style checkbox selection item with optional icon, label, description and price addon, used to build visual multi-select option groups like notification or payment preferences.

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

Code

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

Usage.tsx

import CheckboxCardItem, {
  CheckboxCardGroup,
} from "@/components/ui/checkbox-card-item";
import { MdCreditCard, MdAccountBalance, MdPayment } from "react-icons/md";

export default function CheckboxCardPaymentMethodsDemo() {
  return (
    <CheckboxCardGroup className="grid-cols-3 max-w-2xl">
      <CheckboxCardItem
        icon={<MdCreditCard className="size-5 text-icon" />}
        label="Credit Card"
        description="Visa, Mastercard, Amex"
        defaultChecked
      />
      <CheckboxCardItem
        icon={<MdAccountBalance className="size-5 text-icon" />}
        label="Bank Transfer"
        description="Direct ACH payments"
        defaultChecked
      />
      <CheckboxCardItem
        icon={<MdPayment className="size-5 text-icon" />}
        label="PayPal"
        description="Pay with PayPal balance"
      />
    </CheckboxCardGroup>
  );
}

Dependencies

More by Mahmoud Ilyan

View all
  • Steps

    Steps

    7
  • Chart

    Chart

    3
  • Radio Card

    Radio Card

    2
  • Badge

    Badge

    2
  • Card

    Card

    2
  • Switch

    Switch

    1
  • Input

    Input

    1
  • Textarea

    Textarea

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.4K
  • Statistics Card 2

    Statistics Card 2

    322
  • Card

    Card

    19
  • Stats cards with links

    Stats cards with links

    46
  • Admin Dashboard Cards

    Admin Dashboard Cards

    46
  • Model Grid Cards

    Model Grid Cards

    6
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    781
  • Reading Morph Card

    Reading Morph Card

    59