RadioGroup

RadioGroup

The API documentation of the RadioGroup React component.

Props

Name Type Default Description
children node The content of the component.
name string The name used to reference the value of the control.
onChange func Callback fired when a radio button is selected.

Signature:
function(event: object, value: string) => void
event: The event source of the callback. You can pull out the new value by accessing event.target.value.
value: The value of the selected radio button
value string Value of the selected radio button.

Any other properties supplied will be spread to the root element (FormGroup).

Inheritance

The properties of the FormGroup component are also available. You can take advantage of this behavior to target nested components.

Demos