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.jsonCopy install command
Examples
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
Copy code
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- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
CheckboxCards
CheckboxCard
Data attributes
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 itsCheckboxCardDescription. Name the group witharia-label, or witharia-labelledbypointing 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.