Intro
The select component enables users to select an item from a predefined list.
Basic select component
When to Use
Do
Use the select component:
- If users need to select only one item from a short list of options.
- If the values in the option list are of secondary importance and do not need to be displayed right away.
Don't
Don’t use the select component :
- If users need to choose between only two options. Use a switch instead.
- You need to offer a very large set of options. In this case, use a combo box
- You need to display more than one attribute or search on multiple attributes. In this case, use an input field with a select dialog / value help.
- All available options need to be displayed right away. In this case, use radio buttons.
Anatomy
- Input field: Displays the selected value.
- Value/Text: The content that is selected.
- Dropdown button: Expands and collapses the option list.
- Option list: Contains the selectable values.
Anatomy of the select component
Types
Two-Column Layout
Select with a two-column layout
Adjustable Width
Select with adjustable width
Basic Select with Icons
Behavior and Interaction
If the select component is editable, the user can select an item by first clicking on the dropdown button and then choosing a specific option from the list.
Responsive Behavior
On mobile phones, the option list is displayed as a full screen dialog.