--- title: Radio Group description: A set of checkable buttons where no more than one can be checked at a time. links: doc: https://base-ui.com/react/components/radio-group#api-reference --- ## Preview ## Installation CLI Manual ```bash npx @olyx/cli@latest add radio ``` Install the following dependencies: ```bash npm install @base-ui/react ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ## Usage ```tsx import { RadioGroup, RadioGroupItem } from "@/components/ui/radio" ``` ```tsx Next.js Vite Astro ``` ## API Reference ### RadioGroup Root component. Styled wrapper for `RadioGroup.Root` from Base UI with flex column layout. ### RadioGroupItem Individual radio button. Styled wrapper for `Radio.Root` from Base UI with built-in indicator. ## Examples For accessible labelling and validation, prefer using the `Field` component to wrap radio buttons. See the related example: [Radio Group field](/ui/docs/components/field#radio-group-field). ### Disabled ### With Description