---
title: "Choice Card"
description: "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."
url: https://gelatinui.com/components/choice-card
markdown_url: https://gelatinui.com/components/choice-card.md
access: free
install: "npx shadcn@latest add @gelatin-ui/choice-card"
registry_item: https://gelatinui.com/r/choice-card.json
version: "2026-11-08"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Choice Card

> 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.

Page: https://gelatinui.com/components/choice-card

## When to use it

Best for: A choice that needs more than a label: an icon, a description, or an add-on, with the whole card as the target.

- 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.

## When not to use it

- For a short choice with a label only, use a [Radio Group](https://gelatinui.com/components/radio-group.md).
- To pick one value from a few short words, use a [Segmented Control](https://gelatinui.com/components/segmented-control.md).

## Notes for agents

- The card is a native `<label>` around the control, so a press anywhere on it toggles the control.
- A Switch sits at the end by default; a Checkbox and a Radio at the start. `indicator` moves it.
- Put `name` on the Field to send the choice with a form.

## Anatomy

```text
ChoiceCard
├─ ChoiceCardList (0..n)
├─ ChoiceCardIcon (0..n)
├─ ChoiceCardContent (0..n)
├─ ChoiceCardTitle (0..n)
├─ ChoiceCardDescription (0..n)
├─ ChoiceCardAddon (0..n)
└─ ChoiceCardFooter (0..n)
```

## API reference

### ChoiceCard

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `align` | `"center" \| "start"` | "start" |  |
| `size` | `"default" \| "sm"` | "default" |  |
| `className` | `string` |  |  |
| `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. |

### ChoiceCardList

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `columns` | `1 \| 2 \| 3` | 1 |  |

### ChoiceCardIcon

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `"icon" \| "image"` | "icon" | `icon`: a `foreground` 6% box with a 16px icon. `image`: a picture that fills the box. |

### ChoiceCardContent

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### ChoiceCardDescription

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### ChoiceCardAddon

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### ChoiceCardFooter

No props of its own: `className`, `children`, and every other prop go to the element it renders.

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| ChoiceCard | `choice-card` | `aria-invalid`, `data-checked`, `data-disabled`, `data-indeterminate`, `data-indicator`, `data-readonly`, `data-size` | `--choice-card-addon`, `--foreground` | `motion-timing` |
| ChoiceCardList | `choice-card-list` |  |  |  |
| ChoiceCardIcon | `choice-card-icon` | `data-size` |  |  |
| ChoiceCardContent | `choice-card-content` |  |  |  |
| ChoiceCardTitle | `choice-card-title` |  |  |  |
| ChoiceCardDescription | `choice-card-description` |  |  |  |
| ChoiceCardAddon | `choice-card-addon` |  | `--choice-card-addon`, `--muted-foreground` | `motion-timing` |
| ChoiceCardFooter | `choice-card-footer` | `data-size` |  |  |

## Usage

Import Choice Card and compose its parts.

The sample also uses `switch`, which this add does not write. One command adds them with this item:

```bash
npx shadcn@latest add @gelatin-ui/choice-card @gelatin-ui/switch
```

```tsx title="choice-card.tsx"
import { ChoiceCardDescription, ChoiceCardTitle, ChoiceCardContent, ChoiceCard } from "@/components/ui/choice-card";
import { Switch } from "@/components/ui/switch";

export function ChoiceCardDemo() {
  return (
    <ChoiceCard>
      <Switch />
      <ChoiceCardContent>
        <ChoiceCardTitle>Email</ChoiceCardTitle>
        <ChoiceCardDescription>A daily digest at 9:00</ChoiceCardDescription>
      </ChoiceCardContent>
    </ChoiceCard>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui/choice-card
```

It adds 4 registry items: 3 files, 1054 lines, and the npm packages `clsx`, `tailwind-merge`, `tailwind-variants`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Radio Group](https://gelatinui.com/components/radio-group.md)
- [Checkbox](https://gelatinui.com/components/checkbox.md)
- [Switch](https://gelatinui.com/components/switch.md)

## Accessibility

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`).

## Motion

| Part | Motion |
| --- | --- |
| State | hover · the fill and the edge of the card |
