Use radios to present a list of options where users can only make a single selection.

Props

Accepts StackView props.

checkedboolean

Checks the radio.

disabledboolean

Disables the radio component.

errorboolean

Determines if the radio should display an error state.

idstring | number

Connects input to its corresponding label’s htmlFor.

labelReactNode

Determines if the radio should use an internal label or not.

namestring

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.

size'xs' | 'sm' | 'md' | 'lg' | 'xl'

Determines the size of the radio based on a scale.

valueComponentProps['value']

Maps to the internal input’s value prop.