Skip to content

Choice Card

Free

A card around a checkbox, a radio, or a switch. A press anywhere on the card picks it, and it has room for an icon, a title, a price, and a footer.

  • React 19
  • Tailwind CSS 4

Added Nov 8, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Import Choice Card and compose its parts.

The sample also uses Switch. One command adds them with this item:

choice-card.tsx

ChoiceCard

<label>
PropTypeDefaultDescription
align"center""start""start"
size"default""sm""default"
classNamestring—
indicator"end""start"—Where the control sits: start or end (logical sides). Default: end for a Switch (the settings convention), start for a Checkbox or a Radio.
...props<label> attributes—Every other attribute goes to the <label>, with a ref.

ChoiceCardList

<div>
PropTypeDefaultDescription
columns1231
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ChoiceCardIcon

<span>
PropTypeDefaultDescription
variant"icon""image""icon"icon: a foreground 6% box with a 16px icon. image: a picture that fills the box.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

ChoiceCardContent

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

ChoiceCardDescription

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

ChoiceCardAddon

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

ChoiceCardFooter

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.
  • Put the real Checkbox, Radio, or Switch inside, with ChoiceCardContent for the text.
  • Use ChoiceCardList with columns for a grid of cards.
  • Use size="sm" with an sm Switch in dense settings.

The control stays a real checkbox, radio, or switch; the card is its label.

The whole card is the touch target: 54px or more (46px at sm).

State
hover · the fill and the edge of the card
  1. AddedChoice Card.
Open the release