Radio

Also known as: Radio button, Option button

Resources

Properties

PropertyValuesDefault
Selected Booleantrue | falsefalse
State VariantDefault | Hover | Focus | Error | DisabledDefault
Has label Booleantrue | falsetrue
Label TextstringLabel
Label position VariantStart | EndEnd

When to use

Use if users must select only one option from the list.
When choices or options are clear and distinct from each other, requiring users to make a deliberate selection.

When there is only one option, use checkbox instead for enabling or disabling a setting.
When multiple options can be selected, use checkbox instead.
When the list of options is too long, use select instead.

Behaviour

Selection

Radio has two selection states:

  • Usually, unchecked state is the default, where no option should be assumed, ensuring users consciously select an option before proceeding.
  • Depending on the context, checked state can also be used as the default, when for example there is a highly common or recommended choice, or users have previously selected an option and the system remembers their choice.

States

Radio (and all other forms and selection controls) express states. States indicate current condition of the component to someone interacting with it. Using states ensure clear user feedback, highlighting possible actions or barriers. We have included most common states:

StateContext
DefaultStatus of the component before the interaction. Also referred to as ‘resting’.
HoverWhen the user moves their cursor over the component, but is not taking the action. Slight visual change can indicate interactivity of the component.
FocusWhen user selects the component via keyboard navigation, but has not yet taken action on it.
ErrorUsed when an invalid action occurs. Component may appear red or display helper, signaling an issue that needs resolution.
DisabledA non-interactive state where the component appears faded or grayed out. It indicates that the action is unavailable at the moment.