---
title: Radio Group
description: A set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time.
base: aria
component: true
links:
doc: https://react-aria.adobe.com/RadioGroup
api: https://react-aria.adobe.com/RadioGroup#api
---
## Installation
CommandManual
```bash
npx shadcn@latest add radio-group
```
Install the following dependencies:
```bash
npm install react-aria-components
```
Copy and paste the following code into your project.Update the import paths to match your project setup.
## Usage
```tsx showLineNumbers
import { Label } from "@/components/ui/label"
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"
```
```tsx showLineNumbers
```
## Composition
Use the following composition to build a `RadioGroup`:
```text
RadioGroup
├── RadioGroupItem
└── RadioGroupItem
```
## Description
Radio group items with a description using the `Field` component.
## Choice Card
Use `FieldLabel` to wrap the entire `Field` for a clickable card-style selection.
## Fieldset
Use `FieldSet` and `FieldLegend` to group radio items with a label and description.
## Disabled
Use the `isDisabled` prop on `RadioGroup` to disable all items.
## Invalid
Use `isInvalid` on `RadioGroupItem` and `data-invalid` on `Field` to show validation errors.
## RTL
To enable RTL support in shadcn/ui, see the [RTL configuration guide](/docs/rtl).
## API Reference
See the [React Aria Radio Group](https://react-aria.adobe.com/RadioGroup#api) documentation.