radio
v4.15.0arrow_drop_downName | Type | Default value | Description |
---|---|---|---|
id | string | The id attribute of the radio. | |
name | string | The name attribute of the radio. | |
label | node | Label of the radio. | |
value | string | The value attribute of the radio. | |
onChange | function | () => {} | Function called when state changes Signature:
|
disabled | bool | When true, the radio is disabled. | |
checked | bool | When true, the radio is checked. | |
size | 12 | 16 | 12 | The size of the radio circle. This also informs the text size and spacing. |
isRequired | bool | false | When true, the radio get the required attribute. |
isInvalid | bool | false | When true, the aria-invalid attribute is true. Used for accessibility. |
appearance | string | 'default' | The appearance of the checkbox. The default theme only comes with a default style. |
theme (required) | object | Theme provided by ThemeProvider. | |
options | {"label":"node","value":"string","isDisabled":"bool"}[] | [] | The options for the radios of the Radio Group. |
value | string | The selected item value when controlled. | |
defaultValue | string | The default value of the Radio Group when uncontrolled. | |
onChange | function | () => {} | Function called when state changes. |
label | string | Label to display above the radio button options. | |
size | 12 | 16 | 12 | The size of the radio circle. This also informs the text size and spacing. |
isRequired | bool | false | When true, the radio get the required attribute. |