orientation | Orientation | 'vertical' | The axis the Radio Button(s) should align with. |
name | string | — | The name of the RadioGroup, used when submitting an HTML form.
See MDN. |
value | string | — | The current value (controlled). |
defaultValue | string | — | The default value (uncontrolled). |
onChange | (
(value: T
)) => void | — | Handler that is called when the value changes. |
isDisabled | boolean | — | Whether the input is disabled. |
isReadOnly | boolean | — | Whether the input can be selected but not changed by the user. |
validationState | ValidationState | — | Whether the input should display its "valid" or "invalid" visual styling. |
isRequired | boolean | — | Whether user input is required on the input before form submission.
Often paired with the necessityIndicator prop to add a visual indicator to the input. |
label | ReactNode | — | The content to display as the label. |
description | ReactNode | — | A description for the field. Provides a hint such as specific requirements for what to choose. |
errorMessage | ReactNode | — | An error message for the field. |