<RadioGroup> Component<><RadioGrouplabel="Label"helpText="Eu, tempor dignissim in nulla ligula ac ut. Tellus nibh cras nec blandit."name="light"value="one"onChange={() => {}}errors={{ 'light': 'This is an example error message'}}touched={{ 'light': true }}options={[{label: 'One',value: 'one'},{label: 'Two',value: 'two'},{label: 'Three',value: 'three'}]}/></>
Light theme
Dark theme
| Name | Description |
|---|---|
layoutstring | |
appearancestring | Render on light or dark backgrounds. |
label*string | A label that describes the radio options. |
helpTextstring | Optional text displayed after the label. |
name*string | The name attribute that will be applied to the group of radio inputs. |
value*string | The currently selected value. |
onChange*function | A function that will be called when the button is clicked. Returns the radio options value. |
errorstring | If true, renders an error message. |
optionsobject | Object contains nested props, see below: |
options.label*string | The label associated with the radio option. |
options.value*string | The value associated with the radio option. |
options.disabledboolean | If true, the radio option will be disabled. |