A combo box suggests as you type so you can choose one option, or several, among many: from a list or from what the server finds. It always submits an option from the list, never a half-typed guess.
When the list is long or lives on the server: a client, a time zone, the people on a team. With a few options, a select shows them all at once.
If you need
Use
Never
One of a few options, up to about twelve
Select
A combo box: it makes people type what they could have seen.
One of many: a time zone, a country, a category
Combo box with its list
A select with hundreds of options.
One of what lives on the server: a client, a product
Combo box with search
Downloading the whole list to filter it.
Several of many: owners, tags
Multiple-selection combo box, with chips
Checkboxes in a long list.
Filtering what’s already on screen: a table, a list
Search field
A combo box: it doesn’t choose anything.
LDLumen DentalWebsite
LGLucero GroupDistributor portal
LBLupita BakeryOnline store
What you type filters the list regardless of accents and case, the match is set in bold and the first option is highlighted: Enter chooses it.
Do: The client chosen from the list: it exists and arrives with its ID.
Don’t: The client typed by hand in a text field: it arrives as typed, whether it exists or not.
Anatomy
It’s a text field with its list: the label, the box, the help and the error are the fields’ own, and it adds the list, its options and what screen readers hear.
Part
What it is
The label
Its name, always on top and in view: “Client”.
The box
The fields’ box: the fill, the radius and the rings. It can lead with a Gota icon: the magnifier when it searches the server, the globe for a time zone.
The input
Where you type. It shows the selection; with several, it follows the chips.
The chips
With several, the selection inside the box, each with its ×. The box grows line by line.
The chevron
Opens the whole list. It isn’t a Tab stop: you reach the list by typing or with ↓.
The list
Below the input and as wide as it, 220 at least and up to 332 tall, on the overlay layer.
The option
Its name with the match in bold, a second line when it helps tell options apart, a person’s or a client’s initials and the selected option’s checkmark.
“Add “…””
At the end, when what you typed can be added. In the link color: it’s an action, not a result.
The empty state or the error
In place of the options, outside the list: “No clients for “…”.” or “The search didn’t go through.” with “Try again”.
A field, not a menu
Focus stays in the input while you move through the list: what you typed stays put and the highlighted option is announced without moving focus.
With its native control underneath
Without JavaScript it’s a select with its options, or the input that submits with its form. With JavaScript, the select leaves the view and keeps carrying the value.
Sizes
The fields’ three sizes, with the same type and the same radius. The list and its options measure the same in all three.
Size
Height
For
small
36
A console’s toolbars and filters.
medium
44
A portal’s forms: a new conversation, a profile.
large
52
A page’s forms: a sign-up, an order.
Small, medium and large, with a time zone chosen from the 418 that Cuenca includes.
Options of 44
Every option is at least 44 tall, with a mouse and by touch. Each chip’s × has a 44 target.
The match, at 700
Over the 400 of the rest of the name, with no color or fill. Initials stay at 500, the avatar’s weight.
Up to 332 tall
With more options, the list scrolls within itself and the highlighted option always stays in view.
States
The list says where it stands: searching, without results or with an error you can retry. The box has the fields’ states.
LDLumen DentalWebsite
LGLucero GroupDistributor portal
LBLupita BakeryOnline store
No clients for “zeta”.
The search didn’t go through.
Searching, with the previous list dimmed and the spinner in the input; without results, with what you typed; and a failed search, with “Try again”.
State
How it looks
Closed
The input with the selection, or empty with its placeholder.
Open
The list below the input, with the chevron turned.
Searching
The previous list, dimmed and without a highlight; the spinner appears in the input at 400 ms. Enter waits for the new results.
No results
The empty state in place of the options, with what you typed: “No clients for “zeta”.”.
Failed
“The search didn’t go through.” with “Try again”. Enter or ↓ search again.
Highlighted option
The one Enter takes, on the accent fill with its text.
Selected option
With its checkmark. Highlighted and selected are two things and can show at once on different options.
Disabled option
In the disabled tone: the highlight skips it and it can’t be chosen.
With an error · Disabled
The fields’ own: the 1.5 ring and the message in place of the help; everything in the disabled tone, with no opacity.
Forced colors
The highlighted option takes the system highlight and the match is underlined.
As you type
What you type filters or searches, the first option is highlighted on its own and choosing is always deliberate: neither Escape nor Tab chooses.
It filters regardless of accents and case
“merida” finds “Mérida”, also through words that aren’t shown, like a time zone’s name in the other language. What starts with your text comes first.
The first, highlighted only with text
With something typed, the first option you can choose is highlighted and Enter takes it. With an empty input, ↓ opens the whole list without a highlight.
It searches when you stop typing
With a server search, 250 ms after the last key, and it cancels what’s no longer needed. Until the new results arrive, Enter never chooses a stale one.
Escape and Tab don’t choose
The first Escape closes the list and keeps what you typed; the second clears it. Tab leaves without choosing.
Leaving without choosing restores the selection
If what you typed isn’t an option, the input goes back to the selection or clears, and screen readers hear why.
Adding, only when allowed
When what you typed can be added, “Add “…”” goes last and is never highlighted on its own: adding is a decision.
An option that goes to another page
An option with its own address takes you there when you choose it, like a store’s search.
By touch, a sheet
Tapping the input opens a sheet at nearly full height, with the input on top and the keyboard open. Arriving with Tab never opens it.
Several options
With several, the selection goes in chips inside the input and the list stays open so you can keep choosing.
Ana VegaMarta Ruiz
MRMarta Ruiz
MAMateo Arias
Selected: Ana Vega, Marta Ruiz.
Two people selected, as chips. With “ma” typed, the highlight skips to the first one not yet selected.
The chip comes in and the text clears
When you choose, the chip enters the input, what you typed clears and the list stays open, without a highlight.
The highlight skips the selection
With text, the first matching option that isn’t selected is highlighted. If they all are, there’s no highlight and Enter removes nothing.
Removing is deliberate
A selected option is removed with its ×, or by reaching it with the arrows and pressing Enter. With an empty input, Backspace marks the last chip and a second one removes it.
The selection, in one sentence
The input is described as “Selected: Ana Vega, Marta Ruiz.”, without the name of each ×. Removing one is announced and focus moves to the next ×.
Content
The label names what you choose, the placeholder says how to search and the empty state says what wasn’t found.
Part
How to write it
Example
The label
What you choose: singular, or plural with several.
“Client”, “Owners”
The placeholder
How to search, when it isn’t obvious.
“Search by name”
The option
Its name as the rest of the product shows it. A second line only if it tells two similar ones apart.
“Lupita Bakery” · “Online store”
The empty state
What wasn’t found, with the list’s noun and what you typed.
“No clients for “zeta”.”
Add
What you typed, in quotes.
“Add “Design””
When
What screen readers hear
When you stop typing
“3 results. Lupita Bakery, highlighted: press Enter to choose it”
If the search takes a while
“Searching…”, once
No results
“No results for “zeta”.”, or the page’s empty state
If the search fails
“The search didn’t go through. Press Enter to try again.”
With several
“Selected: Ana Vega, Marta Ruiz.” · “Ana Vega removed.”
Leaving without choosing
““zeta” isn’t in the list, so the field was cleared.”
One option, one name
Two options with the same name are told apart by their second line, never by their order.
The empty state, with the list’s noun
“No clients for…” says more than “No results for…”: the page provides it with empty.
Its own message, when the page knows more
messages replaces the missing-value message, as in other fields: “Choose who you’re writing to.”.
Languages
Its text, in both languages
The count, the highlighted option, the empty state, the error, “Add” and the selection arrive with lang: “3 resultados” and “3 results”.
Search the way people type
The filter compares regardless of accents and case: “mexico” finds “México”, and “sao paulo”, “São Paulo”.
Time zones, by name
Cuenca includes the 418 IANA zones with their names in Spanish and English, for a time zone combo box: “Mexico City” and “Ciudad de México”.
Accessibility
An input with its list, as the W3C describes it: focus stays in the input, the highlighted option is announced and the selection is spoken. It meets WCAG 2.2 AA.
Key
What it does
Typing
Filters or searches, and highlights the first
↓ · ↑
Open the list, without a highlight if there’s no text, and move the highlight
Enter
Chooses the highlighted option; with several, on a selected one, removes it
Escape
The first closes and keeps what you typed; the second clears it
Tab
Leaves without choosing
Backspace
With several and an empty input, marks the last chip; the second removes it
Enter · ↓, after a failed search
Search again
Highlighted isn’t selected
The highlighted option goes in aria-activedescendant and the selected one in aria-selected, with its checkmark. Screen readers never confuse what Enter will take with what’s already chosen.
The count, without moving focus
Half a second after the last key, the status region says how many results there are and which one is highlighted.
The empty state, outside the list
The empty state and the error sit next to the list, never inside it: a list holds only options.
Targets of 44
Every option and each chip’s ×, by touch and with a mouse.
Forced colors
The highlighted option takes Highlight and the match is underlined: in a system theme, weight alone can’t be told apart.
Measured contrast
The highlighted option against the list, 3.0:1, and its text, 4.5:1; the second line over hover, 5.1:1; the chip inside the input, 6.1:1. These are the worst cases in Flouvia’s theme.
Motion and sound
Piece
What it does
Spring
With reduced motion
The list
Grows from the input and leaves
drop · ebb
Fades in 200 ms
The previous results, while searching
Dim in place
drop
Fade in 200 ms
A chip
Enters from 0.9 and leaves to 0.9
drop · ebb
Fades in 200 ms
The chevron
Turns on open
drop
Turns without a transition
The phone sheet
Rises with its scrim
sheet · ebb
Fades in 200 ms
Choosing sounds where choosing is a gesture
On a site, choosing an option or a chip plays tap. In a portal or a console, choosing isn’t an action and stays silent.
Never the only signal
The selection is seen and announced; the sound goes with it.
New guide: when to use it instead of a select or a search field, the highlighted and the selected option, several as chips, its states and what screen readers hear, with its pieces. Text fields, Selection and Menus and popovers point to it for one option among many.
Figma is a trademark of its owner; its logo appears only to show compatibility and does not imply endorsement.
We use cookies to measure and improve the site. Learn more