Radio Group

A group of radio buttons for selecting a single option from a list.

Import

Usage

RadioGroup Props

AttributeTypeDefaultDescription
valuestring-The controlled value of the selected radio item.
defaultValuestring-The default value (uncontrolled).
onValueChange(value: string) => void-Callback when the selected value changes.
disabledbooleanfalseWhether the radio group is disabled.
classNamestring-Additional CSS classes for styling.

RadioGroupItem Props

AttributeTypeDefaultDescription
valuestring-The value of the radio item.
disabledbooleanfalseWhether the radio item is disabled.
classNamestring-Additional CSS classes for styling.