Radio
A customizable radio button component that supports grouping, labels, and disabled states.
Basic Usage
Radio buttons allow users to select one option from a set. Use the name prop to group related options.
Radio Group
Group radio buttons together using the same name prop. Only one option can be selected at a time.
Disabled
Radio buttons can be disabled to prevent user interaction.
Props
Here are the props you can pass to the Radio component:
Prop
Type
Default
Description
nameRequiredstring—
Name of the radio group
valueRequiredstring—
Value of the radio option
labelstringundefinedLabel text for the radio option
checkedbooleanfalseWhether the radio is checked
disabledbooleanfalseWhether the radio is disabled
classNamestringundefinedAdditional CSS classes
onChangefunctionundefinedCallback when radio selection changes