# Choice cards

> Clickable add-on rows showing a title, description, price, and a switch, each fully tappable via a wrapping label.

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

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

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/switch-10.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: `switch`, `field`

## Files

### `registry/patterns/switch/switch-10.tsx`

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

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,
  },
]

export function Switch10() {
  return (
    <FieldGroup className="w-full max-w-sm gap-3">
      {addons.map((addon) => (
        <FieldLabel key={addon.id} htmlFor={`switch-10-${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>
            <Switch
              id={`switch-10-${addon.id}`}
              defaultChecked={addon.defaultChecked}
            />
          </Field>
        </FieldLabel>
      ))}
    </FieldGroup>
  )
}
```
