Radio Group
shadcn/uiA set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time.
Installation
Props
<RadioGroup />
Name
Type
className
string
value
string
defaultValue
string
onValueChange
(value: string) => void
disabled
boolean
name
string
required
boolean
orientation
"horizontal" | "vertical"
dir
"ltr" | "rtl"
<RadioGroupItem />
Name
Type
className
string
value
string (required)
disabled
boolean
required
boolean