Radio
View Source
Use radios to present a list of options where users can only make a single selection.
Props
Accepts StackView props.
checked
booleanChecks the radio.
disabled
booleanDisables the radio component.
error
booleanDetermines if the radio should display an error state.
id
string | numberConnects input to its corresponding label’s htmlFor.
label
ReactNodeDetermines if the radio should use an internal label or not.
name
stringMaps to the internal input’s name prop.
onBlur
(event: React.FocusEvent<HTMLInputElement>) => voidMaps to the internal input’s onBlur prop.
onChange
(event: React.ChangeEvent<HTMLInputElement>) => voidMaps to the internal input’s onChange prop.
onFocus
(event: React.FocusEvent<HTMLInputElement>) => voidMaps to the internal input’s onFocus prop.
value
ComponentProps['value']Maps to the internal input’s value prop.