# Disabled radio group

> Disabled radio group

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

- Page, with a live preview: https://shadcn.exchange/r/reui/c-radio-group-2
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-radio-group-2-light-1396fd234921a0cf.png
- Registry item: https://reui.io/r/new-york-v4/c-radio-group-2.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-2.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: `field`, `radio-group`

## Files

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

```tsx
import { Field, FieldLabel } from "@/components/ui/field"
import {
  RadioGroup,
  RadioGroupItem,
} from "@/components/ui/radio-group"

export function Pattern() {
  return (
    <RadioGroup defaultValue="comfortable" className="w-fit">
      <Field orientation="horizontal">
        <RadioGroupItem value="default" id="disabled-r1" />
        <FieldLabel htmlFor="disabled-r1">Default</FieldLabel>
      </Field>
      <Field orientation="horizontal" data-disabled>
        <RadioGroupItem value="comfortable" disabled id="disabled-r2" />
        <FieldLabel htmlFor="disabled-r2">Comfortable</FieldLabel>
      </Field>
      <Field orientation="horizontal">
        <RadioGroupItem value="compact" id="disabled-r3" />
        <FieldLabel htmlFor="disabled-r3">Compact</FieldLabel>
      </Field>
    </RadioGroup>
  )
}
```
