A radio button allows a user to select a single item from a predefined list of options. Radio buttons are common to use in forms, i.e when you apply for a loan and need to enter "Yes" or "No".
Users should be able to understand their options as well as undo and redo their actions. For that reason radio buttons should always have one option pre-selected. List the options in a logical order such as; least complex to most complex, least risk to most risk, or most likely to be selected to least likely.
When and how to use it
Radio buttons are almost always the preferred option to a dropdown. With radio buttons a user can immediately scan how many and what options there are, without having to click anything. Unless you have to present a lot of options (more than 7), or have a lack of space, use radio buttons.
There are perks with both vertical and horizontal placing. If there are two options, it’s recommended to place them horizontally. When there are more than two options, place the radio buttons vertically.
Do's and don'ts
- The option that is pre-selected should be the safest and most secure option.
- Follow the conventions for hover, active, selected and disabled
- Do not order options alphabetically, localization will likely break the ordering. Avoid nested options, it’s better to have all the options on the same level.
- Do not commit to any choice the user makes, without having the user confirm the choice with an additional action. For example: clicking a "Save"- or "Cancel"-button on a settings page.
To make it easier for users to use the component, the label should also be clickable.
- Normal: Grey 6 (border)
- Hover: Blue
- Selected: Dark blue 2
- Pressed: Dark blue 2 (filled)
- Disabled: Grey 8 (border), Grey 9 (filled)