- Only use within a form group as a form of data capturing.
Select Input
A select input presents users with a list of options within a form, allowing them to choose a single item from the list.
Overview
The purpose of select inputs is to allow users to easily and accurately choose a single option from a predefined list. Typically used in forms, they provide a compact and efficient way to present a list of options and enable user selection.
Select inputs consist of a clickable area that, when activated, displays the available options in a native dropdown menu. Users can then choose one option by clicking or tapping on it, and the selected option replaces the initially displayed selection.
Dos and Don'ts
- Don't use a select input outside a form group, use a dropdown instead.
- Don't use if there are fewer than three options, and use radio buttons instead.
- Don't use for complex data entry.
Anatomy
- Form label (Optional): The form label provides necessary content / information to a form.
- String: Placeholder or user inputted value.
- Chevron icon: Used to indicate there is additional content revealed when interacting with the dropdown.
- Assistive text (Optional): The assistive text provides additional instructional information / error / success messaging.
- Checkmark: Used to indicate that an option has been selected.
- Select option (Optional): Allows the user to deselect an existing choice.
- Option: These represent the available selections that the user can choose from.
- Option group: A way to organise related options into logical categories.
Variations
Default
Grouped options
Organising options into logical categories can help users better understand the content within the select input.
Modifiers
Leading icon
Use a leading icon for non-interactive icons that visually support the select input.
Sizes
Height
Use a consistent select input height when it is being used alongside other form components on the same page.
Large
Choose this size when there is a lot of space to work with. This size is typically used in simple forms or when a select input is placed by itself on a page.
Content
All content should use sentence case.
Select option
The recommended text is “Selected...”, but it can be modified if necessary with contextual changes.
Options
- Describe the option succinctly.
- We recommend presenting the options in alphabetical order.
Overflow
Field
If the selected option exceeds its available visible bound, the content truncates.
Options
If the option label exceeds the width of the form element, the popover container will expand horizontally to accommodate the label. It will continue to grow until it reaches the device's maximum width, at which point the label will wrap onto a new line.
Behaviors
Preselection
The first option is preselected by default and remains selected until the user manually chooses a different option.
Selection
Once the user selects an option, the popover closes automatically and the selection is displayed within the field.
Interactive states
The select input has various states to communicate its current status to the user.
Field
Options
Examples
LTR examples
Here are some examples of select inputs in left-to-right context:
RTL examples
Here are some examples of select inputs in right-to-left context:
Resources
Stable | |
Stable | |
Alpha | |
| N/A |
Stable | |
| Stable |
| Stable |
| N/A |