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