# Choice cards

> Bordered add-on cards that highlight when checked.

A shadcn/ui block from the [@flx](https://ui.flexnative.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/flx/checkbox-08).

- Page, with a live preview: https://shadcn.exchange/r/flx/checkbox-08
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/flx/checkbox-08-light-f0dcb696d790efca.png
- Registry item: https://ui.flexnative.com/r/checkbox-08.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/checkbox-08.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `checkbox`, `field`

## Files

### `registry/patterns/checkbox/checkbox-08.tsx`

```tsx
import { Checkbox } from '@/components/ui/checkbox'
import {
  Field,
  FieldContent,
  FieldDescription,
  FieldGroup,
  FieldLabel,
  FieldTitle,
} from '@/components/ui/field'

const addons = [
  {
    id: 'storage',
    title: 'Extra storage',
    description: '+100 GB of cloud storage.',
    price: '$4/mo',
    defaultChecked: true,
  },
  {
    id: 'support',
    title: 'Priority support',
    description: '24/7 chat with a 1h response SLA.',
    price: '$9/mo',
    defaultChecked: false,
  },
  {
    id: 'analytics',
    title: 'Advanced analytics',
    description: 'Funnels, retention, and custom reports.',
    price: '$12/mo',
    defaultChecked: false,
  },
]

export function Checkbox08() {
  return (
    <FieldGroup className="w-full max-w-sm gap-3">
      {addons.map((addon) => (
        <FieldLabel key={addon.id} htmlFor={`checkbox-08-${addon.id}`}>
          <Field orientation="horizontal">
            <FieldContent>
              <FieldTitle>{addon.title}</FieldTitle>
              <FieldDescription>{addon.description}</FieldDescription>
            </FieldContent>
            <span className="text-sm font-medium tabular-nums">
              {addon.price}
            </span>
            <Checkbox
              id={`checkbox-08-${addon.id}`}
              defaultChecked={addon.defaultChecked}
            />
          </Field>
        </FieldLabel>
      ))}
    </FieldGroup>
  )
}
```
