Components › Forms

Checkbox card

A whole card that toggles like a checkbox, for pick-any-number choices.

Installation

npx plankui@latest add checkbox-card

Usage

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

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

API reference

PropTypeDefaultDescription
titleReactNoderequiredThe option's name.
descriptionReactNodeA line under the title.
mediaReactNodeAn icon, logo or image at the start.
checked / defaultCheckedbooleanControlled or initial state.
onCheckedChange(checked: boolean) => voidCalled when it toggles.
disabledbooleanfalseGreys the card out.

View the source on GitHub