- Use them mainly to perform actions, and for searching or filtering content.
- Use when the list of options is large and the user benefits from the search functionality.
- Use them when screen real estate is limited.
- Use clear labels.
Dropdown Search
A dropdown search displays a list of options for users to choose from and includes a search functionality, enabling them to quickly find and select items, perform actions, filter content, or sort information efficiently.
Dos and Don'ts
- If most of your experience is form-based or frequently used on mobile platforms, use Select Input instead.
- Don't use Dropdown searches when there are fewer than five options. Use Dropdown instead.
Anatomy
- Form label (optional): The form label provides a clear and concise information to describe the contents of the field.
- Dropdown field: Acts as the main interactive area of the component, where the user's selection and controls for the Dropdown live.
- Leading icon: Visually supports the options.
- Placeholder/Selection: Indicates the placeholder text or option selected by the user.
- 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, as well as error and success messages.
- Focus ring: Used to indicate the user is currently interacting with the Dropdown search.
- Multi-select chip: Used to indicate the number of selected items in all multiple selection variants.
- Cursor: Indicates where the user can search to filter the list of options.
- Dropdown popover: Contains a list of selectable options for the user to choose from.
- Option: These represent the available selections that the user can choose from.
- Checkbox (optional): Allows users to select options in all multiple selection variants, and used to indicate that an option has been selected.
- Check icon: Used to indicate that an option has been selected for single selection variants.
- Scrollbar (optional): Allows users to scroll through the content when there are more options than can be displayed in a single view.
Variants
Single select
The single select variant allows users to select a single option from a list.
Multi select
The multi select variant allows users to select one or more options from a list.
Modifiers
Field
Type
Placeholder
Placeholder text should not contain crucial information, and should only be displayed if beneficial to the user. Placeholder text disappears after the user begins entering data into the input or has selected an option.
Filled
The user's selection is always displayed in the field for both single and multi select.
Form label
You can remove the label in situations where the dropdown's purpose is already clear and there are contextual clues.
Assistive text
Use the assistive text modifier to provide additional information which can help the user figure out the option they need to select.
Leading icon
A leading icon can be added to visually support the input, and is persistent.
Popover
Secondary text
Supporting secondary text is available for additional information that provides value to the user. If secondary text is used, it will be applied to all option items.
Leading icon
A leading icon can be added to visually support the options, and is persistent.
Sizes
Height
Use a consistent dropdown height when it is being used alongside other components on the same page.
Small
Use when there isn't enough vertical space for the default dropdown size.
Large
Choose this size when there is a lot of space to work with.
Width
The dropdown width is flexible, and the options popover matches the width of the field.
Content
Placeholder
Use clear placeholder text for the dropdown so that users understand the purpose.
Options
Primary text
Describe the dropdown option succinctly ideally within one line of text. We recommend presenting the options in alphabetical order.
Secondary text
Provides additional detail if required, aiming to be contained within two lines.
Overflow
Field
String
If the placeholder string or single selection string exceeds the available horizontal width of the field, the string will truncate.
Chip
If the chip's label exceeds the available width, the search function and clear icon take priority, causing the label to be truncated. A minimum width of 56px must be allocated for the search area.
Search
If the search string exceeds the available horizontal width of the field, the string will overflow to the left.
Popover
String
If the primary or secondary option string exceeds the available horizontal width of the popover, the string will wrap onto a new line.
Option quantity
If the quantity of options exceeds 5, the popover will increase in height to show the first 5 1/2 options, with the height being depicted by the content.
Behaviours
Universal
Filtering
As the user types in the field, any options that start to match your entry dynamically remain in the list whilst other existing options are temporarily removed.
Loading
If the options list doesn't populate automatically, the loading state can be applied whilst the options are populating.
Single select
Making a selection
Users can select a single option from the popover list and the popover will close once the user has made a selection. The selected option will be indicated within the popover, and the selection displayed within the field.
Removing a selection
The user can remove the selection by clicking the clear icon within the field.
Preselection
A preselection can be made by default if the dropdown always requires an input. In this case, the first option is preselected by default and remains selected until the user manually chooses a different option. The clear functionality is additionally removed to ensure a selection is always present.
Multi select
Making a selection
Users can select one or more options from the popover list and the popover will remain open whilst the user is making selections. All selected options will be indicated within the popover, and the chip will dynamically display the number of selections.
Selected options shift to the top of the popover list in alphanumeric order if the popover is reopened post selection, or if the list has been filtered and returns to its default order.
Removing selections
The user has two options to remove selections. They can either deselect individual options via the popover by clicking on the desired option or batch remove all selections using the chip in the field.
Interactions
Collapsed
The interactions for both the single and multi select are the same in the collapsed state.
- Opens the popover: A popover list will appear underneath.
Expanded (single select)
- Close the popover: A popover list will disappear from underneath.
- Search input: Allows users to search the options list.
- Selects option and closes the popover: Selection made, and the popover list will disappear from underneath.
Expanded (multi select)
- Close the popover: A popover list will disappear from underneath.
- Search input: Allows users to search the options list.
- Selects or deselects option: Selection made.
- Deselects all options: All selections removed.
States
Popover
Unselected
By default all options are unselected.
Selected
How many options that can be selected by the user is determined by whether the single or multi select variant is in use.
Interactive states
Field
Popover
Examples
LTR examples
Here are some examples of Dropdown searches in left-to-right context:
RTL examples
Here are some examples of Dropdown searches in right-to-left context: