Radio

A single-selection interface element that allows users to choose only one option from a given set.

code
Expend code

#Vertical Alignment

code
Expend code

#DefaultChecked

code
Expend code

#Disabled

code
Expend code

Radio

The properties of the Radio component used to display the check state or group information of a radio button.

PropTypeDefaultDescription
classNamestringnullSpecifies the CSS styles for the Radio component.
labelstringnullThe text displayed next to the radio button.
namestringnullThe group name of the radio button.
valuestringnullThe value of the radio button.
onChange(event: React.ChangeEvent<HTMLInputElement>) => voidundefinedCallback function called when the selection box of the radio button changes.
defaultCheckedbooleanfalseDetermines whether the component should be initially rendered in a selected state.
disabledbooleanfalseDetermines whether the radio button is disabled.