Skip to content

RadioGroup

Props

API reference for RadioGroup. For usage examples, see the React tab.

RadioGroup

NameTypeDefault
childrenReactNode

The children of the component. A function may be provided to alter the children based on component state.

descriptionstring
isDisabledboolean

Whether the input is disabled.

isInvalidboolean

Whether the input value is invalid.

isReadOnlyboolean

Whether the input can be selected but not changed by the user.

isRequiredboolean

Whether user input is required on the input before form submission.

labelstring

Radio

NameTypeDefault
value (required)string

The value of the radio button, used when submitting an HTML form. See MDN (opens in new tab).

childrenChildrenOrFunction<RadioFieldRenderProps>

The children of the component. A function may be provided to alter the children based on component state.

descriptionstring

Additional helper text for the radio option.

inputRefRef<HTMLInputElement | null>

A ref for the HTML input element.

isDisabledboolean

Whether the radio button is disabled or not. Shows that a selection exists, but is not available in that circumstance.