Radio Button is deprecated in SWAN v3.44.0.
Use Radio Group or Choice Group instead, which handles grouping, labelling, and selection state for you. See Deprecation for more information.
Radio Button is deprecated in SWAN v3.44.0.
Use Radio Group or Choice Group instead, which handles grouping, labelling, and selection state for you. See Deprecation for more information.
variant="single-select".The preview has been updated.
Use disabled to prevent users from selecting the Radio Button; when an option is unchangeable and not part of the current task.
The preview has been updated.
Use RadioButton within a Selection Set.
Alternatively, if you wish to have more control over your layout, either:
The preview has been updated.
role="radiogroup" and the mandatory aria-labelledby attribute. The value of aria-labelledby should be the id of the element serving as the title for the radio group. If the group lacks a visible title, use the aria-label attribute with a descriptive title for the radio group. Ensure the value of aria-label is localized, since some browsers read it aloud to the user.The preview has been updated.
When a radio button is required for form submission:
aria-required="true" on the Radio Buttons' wrapper (it tells AT that this form input is required).required on all of the Radio Buttons in the wrapped group (it tells the browser to block form submission until one of them is selected).<input>. No props beyond core props and native HTML attributes.