Brand Guide

Components

Combobox

Picks from a list that can be searched, for more options than a select can hold.

Default

The list opens the width of the field, filters as you type and closes on a choice.

With an icon and detail

icon leads the field. An option’s detail is muted, at the end of its row and of the field.

In a field

We use this to find roles you could commute to.

Searching on the server

Pass search to hold the text and filter the options yourself. Nothing shows until there is text, and the empty message waits for the results.

Several values

MultiCombobox opens from a chip action. Tick as many as apply, and each one joins the chips.
Which languages do you work in?

With a limit

With isFull, nothing more can be ticked. A ticked value can still be unticked.
Pick up to three industries

Invalid

Disabled

Read-only

Shows the value with a lock and does not open. Say under it where the value came from.

From your LinkedIn profile.

On a phone

Below 640px the list opens in a bottom sheet instead of a popover. The sheet is the full width of the screen, its rows are 44px tall, it lifts above the keyboard while you type, and a swipe down closes it. MultiCombobox stays open while rows are ticked, so its sheet also has a Done button beside the search.

Narrow the window and open any example on this page to see it.

Best practices

  • Use a combobox when there are more options than a select can hold, such as cities or programming languages. For a short, fixed list, use a select.
  • Combobox picks one value and is a field, like an input. MultiCombobox picks several and opens from any trigger, such as a chip action.
  • Use detail for a second, muted piece of text at the end of a row, such as a city's region. It also shows in the field once the option is chosen.
  • When the options come from the server, pass search and filter them yourself. Pass selectedOption too, so the field can show the chosen option after the results have moved on.
  • Add focusSearchOnOpen when nothing can be picked before typing. On a phone the sheet then opens with the keyboard up.
  • Say what was not found in emptyText: "No matching city or town", not "No results".