Radio
Examples
Radio Props
The Radio component accepts the following props.
Name | Type | Required | Default | Description |
---|---|---|---|---|
className | string | '' | Additional classes added to the Radio. | |
isValid | bool | true | Flag to show if the Radio selection is valid or invalid. | |
isDisabled | bool | false | Flag to show if the Radio is disabled. | |
isChecked | bool | null | Flag to show if the Radio is checked. | |
onChange | func | () => undefined | A callback for when the Radio selection changes. | |
label | node | undefined | Label text of the Radio. | |
id | string | Id of the Radio. | ||
aria-label | custom | null | Aria-label of the Radio. | |
name | string | Name for group of Radios |