Skip to content
aq-ui
Back to ComponentsComponent

Radio Group

Open-code aq-ui accessible component family for Radio Group.

Preview

This is a live example. Interact with the available controls and use the keyboard to inspect the component's states and behavior.

Loading interactive preview…

Installation

pnpm dlx aq-ui@alpha add radio-group

API reference

Client module

Import the parts you need, then jump to an export for its contract.

View full source

Quick start

"use client"

import { RadioGroup } from "@/components/ui/radio-group"

<RadioGroup />

RadioGroup

constSource L10

Open-code aq-ui accessible component family for Radio Group.

const RadioGroup = React.forwardRef<React.ComponentRef<typeof RadioGroupPrimitive>, RadioGroupPrimitive.Props>(…)
Props type
RadioGroupPrimitive.Props
<RadioGroup />

RadioGroupItem

constSource L25

Item export for composing Radio Group.

const RadioGroupItem = React.forwardRef<React.ComponentRef<typeof RadioPrimitive.Root>, RadioPrimitive.Root.Props>(…)
Props type
RadioPrimitive.Root.Props
<RadioGroupItem />

Registry dependencies

utils

Package dependencies

@base-ui/react@^1.7.0

Files

  • components/ui/radio-group.tsx

Source