Radio Group

A set of mutually exclusive options. Only one option can be selected at a time. Built on Radix UI Radio Group.

Installation

Props

PropTypeDefaultDescription
value
stringControlled selected value.
onValueChange
(value: string) => voidCallback when selection changes.
defaultValue
stringUncontrolled default selected value.
disabled
booleanfalseDisables all radio items.
orientation
"horizontal" | "vertical""vertical"Orientation of the group.