RadioButtonGroup

a group of radio buttons

Props

children

Function that will be called to render the visual representation. It will be passed an object indicating whether the button is checked. It should return a react element. For example: children={(option, { checked }) =&gt; &lt;Box ...>{...}</Box>}

(option, { checked, hover }) => {...}

disabled

Disables all options.
truefalse

name

The DOM name attribute value to use for the underlying <input/> elements.

"string"

onChange

Function that will be called when the user clicks on of the radio buttons. It will be passed a React event object.

({ target: { value } }) => {...}

options

Options can be either a string or an object.
["string"]
[
  {
    "disabled": false,
    "id": "ONE",
    "name": "one",
    "value": "1",
    "label": "one"
  }
]

value

Currently selected option value.
"string""object"