Checkbox Card

A selectable card pairing a checkbox with a title and description — bordered, rounded and brand-tinted when checked.

$bunx shadcn@latest add @nx-ui/checkbox-card
Registry item
Installs withcheckboxutils

Basic group

Cards inside a CheckboxGroup share one value array via `defaultValue`/`value`; each card contributes its `value`. Clicking anywhere on a card toggles it.

Select all

A parent Checkbox drives the whole group: controlled `value` plus `indeterminate` on the parent while only some children are ticked.

Disabled & invalid

Disabled cards dim and explain themselves; `aria-invalid` swaps the border for the destructive colour when a required choice is missing.

Card grid

Cards sit happily in a grid for compact multi-select choices — here a two-column layout of collection add-ons.

API reference

Exported parts and their props, extracted from the component source.