Skip to contentKino
Skip to Content

Checkbox cards

Pick any number of options, each a card. Ticked, its tint spreads from where you pressed, and its tick wipes in.

npx shadcn add https://kinoui.com/r/checkbox-cards.json
Share on

Examples

Add-ons

Added to the Team plan, billed with it each month.
2 added · $78 / month

Default

Each card is the checkbox, so a press anywhere on it ticks it. The tint spreads from where you pressed until it fills the card, and drains to where you press to clear it.

Installation

npx shadcn@latest add https://kinoui.com/r/checkbox-cards.json
Files
lib/reduce-motion.tslib/resize.tslib/choice.tscomponents/kino/checkbox.tsxcomponents/kino/checkbox-cards.tsx
Packages
@base-ui/react

New to Kino? Installation covers what your project needs first and the @kino namespace.

API reference

CheckboxCards

PropTypeDefaultDescription
valuestring[]NoneThe ticked values, when you hold the state.
defaultValuestring[]NoneThe values ticked at first, when it holds its own state.
onValueChange(value, details) => voidNoneCalled with the new values when a card is ticked or cleared.
disabledbooleanfalseTurns off every card.

CheckboxCard

PropTypeDefaultDescription
valuestringNoneThe value the group holds while this card is ticked.
disabledbooleanfalseTurns off this card only.
aria-invalidbooleanNoneDraws its border in the destructive colour, with a ring.

Data attributes

AttributeOnDescription
data-checkedCheckboxCardPresent while it is ticked.
data-disabledCheckboxCard, CheckboxCardsPresent while it is disabled.

Accessibility

  • Each card is a checkbox: Tab moves from card to card, and Space ticks or clears the one in focus.
  • Each card is read out by its CheckboxCardTitle, then its CheckboxCardDescription. Name the group with aria-label, or with aria-labelledby pointing at its visible heading.
  • A ticked card shows its checkbox’s tick and a primary border, so it never relies on the tint. In forced colours the border and the box take the system highlight.
  • When the system asks for less motion, the tint fades in place and the tick appears at once.