# Radio group in card with icons

> Radio group in card with icons

A shadcn/ui block from the [@reui](https://reui.io) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/reui/c-radio-group-9).

- Page, with a live preview: https://shadcn.exchange/r/reui/c-radio-group-9
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-radio-group-9-light-25540241c2b81d25.png
- Registry item: https://reui.io/r/new-york-v4/c-radio-group-9.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://reui.io/r/new-york-v4/c-radio-group-9.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: `card`, `field`, `radio-group`, `separator`

## Files

### `c-radio-group-9.tsx`

```tsx
import { Card } from "@/components/ui/card"
import {
  Field,
  FieldGroup,
  FieldLabel,
  FieldTitle,
} from "@/components/ui/field"
import {
  RadioGroup,
  RadioGroupItem,
} from "@/components/ui/radio-group"
import { Separator } from "@/components/ui/separator"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"

export function Pattern() {
  return (
    <Card className="w-full max-w-xs p-0">
      <RadioGroup defaultValue="email">
        <FieldGroup className="gap-0">
          <Field>
            <FieldLabel className="justify-between px-4 py-3">
              <FieldTitle className="flex items-center gap-2">
                <IconPlaceholder
                  lucide="MailIcon"
                  tabler="IconMail"
                  hugeicons="MailIcon"
                  phosphor="EnvelopeIcon"
                  remixicon="RiMailLine"
                  aria-hidden="true"
                  className="size-4 opacity-60"
                />
                Email
              </FieldTitle>
              <RadioGroupItem value="email" id="contact-email" />
            </FieldLabel>
          </Field>
          <Separator />
          <Field>
            <FieldLabel className="justify-between px-4 py-3">
              <FieldTitle className="flex items-center gap-2">
                <IconPlaceholder
                  lucide="SmartphoneIcon"
                  tabler="IconDeviceMobile"
                  hugeicons="SmartPhone01Icon"
                  phosphor="DeviceMobileCameraIcon"
                  remixicon="RiSmartphoneLine"
                  aria-hidden="true"
                  className="size-4 opacity-60"
                />
                Phone
              </FieldTitle>
              <RadioGroupItem value="phone" id="contact-phone" />
            </FieldLabel>
          </Field>
          <Separator />
          <Field>
            <FieldLabel className="justify-between px-4 py-3">
              <FieldTitle className="flex items-center gap-2">
                <IconPlaceholder
                  lucide="MessageCircleIcon"
                  tabler="IconMessageCircle"
                  hugeicons="Message02Icon"
                  phosphor="ChatCircleIcon"
                  remixicon="RiChat3Line"
                  aria-hidden="true"
                  className="size-4 opacity-60"
                />
                Chat
              </FieldTitle>
              <RadioGroupItem value="chat" id="contact-chat" />
            </FieldLabel>
          </Field>
        </FieldGroup>
      </RadioGroup>
    </Card>
  )
}
```
