Skip to main content

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

Do
  • 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.
Don't
  • 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

Annotated diagram of a closed dropdown search showing its main parts. Numbers 1 to 6 indicate the form label, dropdown field, leading icon, placeholder and selection text, chevron icon and assistive text.
  1. Form label (optional): The form label provides a clear and concise information to describe the contents of the field.
  2. Dropdown field: Acts as the main interactive area of the component, where the user's selection and controls for the Dropdown live.
  3. Leading icon: Visually supports the options.
  4. Placeholder/Selection: Indicates the placeholder text or option selected by the user.
  5. Chevron icon: Used to indicate there is additional content revealed when interacting with the dropdown.
  6. Assistive text (optional): The assistive text provides additional instructional information, as well as error and success messages.
Annotated diagram of two open dropdown searches side by side: a single select with a focus ring on the field, and a multi select with a chip, checkboxes and a scrollbar. Numbers 7 to 14 indicate the focus ring, multi select chip, search cursor, dropdown popover, option, checkbox, check icon and scrollbar.
  1. Focus ring: Used to indicate the user is currently interacting with the Dropdown search.
  2. Multi-select chip: Used to indicate the number of selected items in all multiple selection variants.
  3. Cursor: Indicates where the user can search to filter the list of options.
  4. Dropdown popover: Contains a list of selectable options for the user to choose from.
  5. Option: These represent the available selections that the user can choose from.
  6. Checkbox (optional): Allows users to select options in all multiple selection variants, and used to indicate that an option has been selected.
  7. Check icon: Used to indicate that an option has been selected for single selection variants.
  8. 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.

A single select dropdown search with 'Option 1' selected in the field and a check mark next to it in the open popover.

Multi select

The multi select variant allows users to select one or more options from a list.

A multi select dropdown search with a chip showing the number of selected items in the field and checkboxes next to each option in the open popover.

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.

A dropdown search progressing from placeholder text in the field, to an expanded popover of options, to a selected option shown in the field.
Filled

The user's selection is always displayed in the field for both single and multi select.

A single select dropdown search showing 'Option 1' selected in the field and the same option marked with a check mark in the expanded popover.
A multi select dropdown search showing a '1 selected' chip in the field and checkboxes in the expanded popover.

Form label

You can remove the label in situations where the dropdown's purpose is already clear and there are contextual clues.

The label of a Dropdown is an important piece of information that helps users understand its purpose. Please make sure you only remove the label when the component is set in a clear and obvious context.
A dropdown search displayed without a form label.

Assistive text

Use the assistive text modifier to provide additional information which can help the user figure out the option they need to select.

The assistive text is always provided in the error state to inform the user how to fix the error.
A dropdown search with assistive text displayed below the field.

Leading icon

A leading icon can be added to visually support the input, and is persistent.

The use of leading icons should be carefully considered due to the available space within the component and the complexity.
Two dropdown searches with a leading icon inside the field: one showing placeholder text and one showing a selected option.

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.

Dropdown search popovers where each option has a primary line of text with supporting secondary text beneath it.

Leading icon

A leading icon can be added to visually support the options, and is persistent.

Dropdown search popovers where each option has a leading icon next to its label.

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.

A dropdown search with a small field height.
A dropdown search with a medium field height.

Large

Choose this size when there is a lot of space to work with.

A dropdown search with a large field height.

Width

The dropdown width is flexible, and the options popover matches the width of the field.

An expanded dropdown search showing the options popover matching the width of the field.

Content

Placeholder

Use clear placeholder text for the dropdown so that users understand the purpose.

A dropdown search field with the form label 'Restaurant locations' and the placeholder text 'Search countries'.

Options

Primary text

Describe the dropdown option succinctly ideally within one line of text. We recommend presenting the options in alphabetical order.

An expanded dropdown search listing countries in alphabetical order: Australia, Belgium, Canada, Denmark, England and France.

Secondary text

Provides additional detail if required, aiming to be contained within two lines.

An expanded dropdown search with the form label 'Restaurant address', listing restaurants where each option has a secondary line of text showing its address.

Overflow

Field

String

If the placeholder string or single selection string exceeds the available horizontal width of the field, the string will truncate.

A dropdown search field where long placeholder text is truncated with an ellipsis.
A dropdown search field where long selected text is truncated with an ellipsis.

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.

A dropdown search field where a chip label is truncated with an ellipsis while the search input and clear icon remain visible.

If the search string exceeds the available horizontal width of the field, the string will overflow to the left.

A dropdown search field where the typed search string overflows to the left.
A dropdown search field with a longer typed search string overflowing further 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.

An expanded dropdown search where a long option name wraps onto a second line in the popover.
An expanded dropdown search where long option names and secondary text wrap onto new lines in the popover.

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.

An expanded dropdown search with more than five options showing a cropped sixth option and a scrollbar in the popover.
An expanded dropdown search with many options showing a taller popover with a scrollbar.

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.

An entry can match any part of an option, not just the start. This applies to both the primary and secondary text.
A sequence showing a dropdown search filtering its options as the user types a postcode, leaving only the matching options in the list.

Loading

If the options list doesn't populate automatically, the loading state can be applied whilst the options are populating.

An expanded dropdown search showing a loading state with a spinner and the text 'Loading results...'.

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.

A sequence showing a single select dropdown search open with the cursor hovering 'Option 1', followed by the field displaying the selection.

Removing a selection

The user can remove the selection by clicking the clear icon within the field.

The current selection cannot be removed by clicking on the selected option within the popover.
A sequence showing an open dropdown search with a selected option, and the cursor moving to the clear icon in the field to remove the selection.

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.

A dropdown search with 'Option 1' preselected in the field and no clear icon available.

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.

A sequence showing a multi select dropdown search open with the cursor selecting an option, the chip count updating, and the selected options marked with checked checkboxes.

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.

A selected option is only excluded from appearing at the top of the list when the user filters the list and the selected option does not match the input.
A multi select dropdown search where previously selected options have shifted to the top of the popover list in alphanumeric 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.

A sequence showing selections being removed by deselecting an option in the popover with the cursor, and by using the chip's clear icon in the field.

Interactions

Collapsed

The interactions for both the single and multi select are the same in the collapsed state.

A collapsed dropdown search field with a dashed orange outline and the marker 1 indicating the area that opens the popover.
  1. Opens the popover: A popover list will appear underneath.

Expanded (single select)

An expanded single select dropdown search with dashed orange outlines and numbered markers indicating the areas that close the popover, search the options list and select an option, with the surrounding canvas tinted to show where the popover closes.
  1. Close the popover: A popover list will disappear from underneath.
  2. Search input: Allows users to search the options list.
  3. Selects option and closes the popover: Selection made, and the popover list will disappear from underneath.

Expanded (multi select)

An expanded multi select dropdown search with dashed orange outlines and numbered markers indicating the areas that close the popover, search the options list, select or deselect an option and deselect all options, with the surrounding canvas tinted to show where the popover closes.
  1. Close the popover: A popover list will disappear from underneath.
  2. Search input: Allows users to search the options list.
  3. Selects or deselects option: Selection made.
  4. Deselects all options: All selections removed.

States

Popover

Unselected

By default all options are unselected.

A single select popover with all options unselected.
A multi select popover with all options 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.

A single select popover with one option selected, marked with a check mark.
A multi select popover with a selected checkbox next to an option.

Interactive states

Field

Default

A dropdown search field in its default state.

Hover

A dropdown search field in its hover state, with a subtle background highlight and a text cursor in the field.

Focus

A dropdown search field in its focus state, showing a focus ring around the field.

Disabled

A dropdown search field in its disabled state, appearing greyed out and non-interactive.

Error

A dropdown search field in its error state, with a red border and error assistive text below.

Popover

Default

A single select popover and a multi select popover in their default state.

Hover

A single select popover and a multi select popover with an option highlighted on hover.

Active

A single select popover and a multi select popover with an option in its active, pressed state.

Focus

A single select popover and a multi select popover with a focus ring around an option.

Disabled

A single select popover and a multi select popover in a disabled state, appearing greyed out.

Examples

LTR examples

Here are some examples of Dropdown searches in left-to-right context:

A multi select dropdown search in left-to-right context with the form label 'Category', a chip showing '1 selected' and a list of food options.
An expanded dropdown search in left-to-right context with 'England' selected from a 'Restaurant location' list.

RTL examples

Here are some examples of Dropdown searches in right-to-left context:

A multi select dropdown search in right-to-left context with a Hebrew form label, a chip showing the number of selected items in Hebrew, and a list of food options.
An expanded dropdown search in right-to-left context with Hebrew text and a selected country marked with a check mark.
Back to top