Radio buttons are used to present the user with mutually exclusive choices. Radio buttons must always be presented in a group of two or more. Related design guidelines: Data input

ExamplesPropsCSS variables


Controlled radio

Copied to clipboard

Uncontrolled radio

Copied to clipboard

Disabled radio

Copied to clipboard


Radio props

The Radio component accepts the following props.

classNamestring''Additional classes added to the radio.
idstringId of the radio.
isCheckedbooleanFlag to show if the radio is checked.
isDisabledbooleanfalseFlag to show if the radio is disabled.
isValidbooleantrueFlag to show if the radio selection is valid or invalid.
labelReact.ReactNodeLabel text of the radio.
namestringName for group of radios
onChange(checked: boolean, event: React.FormEvent<HTMLInputElement>) => voidFunction.prototypeA callback for when the radio selection changes.
aria-labelstringAria label for the radio.

CSS variables