# Checkbox card

A whole card that toggles like a checkbox, for pick-any-number choices. PlankUI component for React 19 and Tailwind CSS v4. Category: Forms.

## Install

```bash
npx plankui@latest add checkbox-card
```

## Usage

```tsx
import { CheckboxCard } from "@/components/ui/checkbox-card";

<CheckboxCard media={<MailIcon />} title="Email" description="A summary every Monday." defaultChecked />
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| title | `ReactNode` | `required` | The option's name. |
| description | `ReactNode` |  | A line under the title. |
| media | `ReactNode` |  | An icon, logo or image at the start. |
| checked / defaultChecked | `boolean` |  | Controlled or initial state. |
| onCheckedChange | `(checked: boolean) => void` |  | Called when it toggles. |
| disabled | `boolean` | `false` | Greys the card out. |

Source: https://github.com/VectorLabsHQ/plankui/blob/main/components/ui/checkbox-card.tsx
