<Radio />

A radio button element. The component will automatically render as a Material Design radio button on Android devices.

Most attributes that can be used for a normal <input type="radio"> element can also be used on the <Radio> component.

Usage

<Radio
  onChange={event => { this.setState({checked: event.target.checked})} }
  modifier='material' />
Name Type Description
name string The name of the radio button. Optional.
modifier string The appearance of the radio button. Optional.
disabled bool Specifies whether the radio button is disabled. Optional.
onChange func Called when the radio button state changes. Optional.
value union Value of the radio button. Optional.
checked bool Controls the state of the radio button (controlled). Optional.
defaultChecked bool Defined the state of the radio button at first render for uncontrolled inputs. Optional.
inputId string Specify the “id” attribute of the inner <input> element. This is useful when using
Name Description
material Displays a Material Design radio button.

Need Help?

If you have any questions, use our Community Forum or talk to us on Discord chat. The Onsen UI team and your peers in the community will work together to help solve your issues.

For bug reports and feature requests use our GitHub Issues page.