Radio Group

Radio Group

radio.tsx

With Description

radio.tsx

API Reference

RadioGroup

value?
string
Default—
defaultValue?
string
Default
onValueChange?
((value: string) => void)
Default—
className?
string
Default—
orientation?
"horizontal" | "vertical"
Defaultvertical
aria-label?
string

Accessible name for the group when no visible label names it.

Default—
aria-labelledby?
string

Id of a visible element that names the group.

Default—

RadioGroupItem

value
string
Default—
label?
string
Default—
description?
string

Supporting text under the label, announced as the description rather than the name.

Default—
disabled?
boolean
Default—
className?
string
Default—
id?
string
Default—

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/radio
Also on React Native. One dot glides to the option you pick.

Updated