Components › Forms
Checkbox card
A whole card that toggles like a checkbox, for pick-any-number choices.
Installation
npx plankui@latest add checkbox-cardUsage
import { CheckboxCard } from "@/components/ui/checkbox-card";
<CheckboxCard media={<MailIcon />} title="Email" description="A summary every Monday." defaultChecked />API reference
| 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. |