Status
The status of the component
Status
The status of the component
Figma component
A link to the Figma library where the component lives.
Repository
A link to the repo where the component lives.
There should be at least two mutually exclusive options to select from. If the two options involve any activation, consider using theย toggle. If there is only one option to select, consider using theย checkbox
Two options is the minimum number of options required.
Do not show just one option. In this case, a checkbox should be used.
Radio buttons are appropriate when soliciting Yes/No responses.
This example involves activation. A toggle therefore should be used in place of radio buttons.
When a list of options is presented, be sure to include a label describing it. This will provide clarity for the user, especially when screen readers are involved.
A descriptive label gives content to the selectable options.
The list loses meaning without a descriptive label.
When offering users multiple options for selection, opt for checkboxes over radio buttons. Unlike radio buttons, which limit users to selecting just one option, checkboxes enable users to select multiple items.
Do use checkboxes when multiple items can be selected
Don't use radio buttons when multiple items can be selected.
Ensuring users can undo their actions is crucial in UI design, as it prevents confusion and frustration. But you cannot click or tap a selected radio button to deselect it.
Opt to keep radio buttons blank by default to avoid potentially offending customers or mistakenly addressing individuals with incorrect designations.
Don't select an option by default if it will result in a presumptuous or alienating choice.
Please check the NNgroup article for more information about Radio Button default selection:
๐Radio Button Default Selection - NN Group Article
Although radio buttons and dropdowns can and provide similar functionality, when to use them depends on what needs to be emphasized and/or the number of options available to the user.
This will help reduce the userโs cognitive load and anxiety. If you have more than six items, opt for multi-select dropdown.
Do use a dropdown if the list is bigger than 6 option items.
Don't use radio button group if you need to save space or have more than 6 option items
If your goal is for the user to easily see the options side by side for comparison, having them displayed as radios is more effective than in a dropdown.
Listing out the options here allows users to compare and contrast the choices easily.
By tucking the options into a dropdown, users canโt see the entire list of options until the dropdown is expanded.