Components · Forms · Combobox
Back to ComboboxComboboxNew
Use for single-choice fields with long lists where people know the name and type it.
Properties
Size, corner radius and the content options below are properties of the same component, not separate elements - change them to check this component's appearances and states in the Live Preview.
Live Preview
Every appearance side by side, each in every state. One full matrix is rendered per selected Size and Corner radius combination.
When to use
Single-choice fields with long lists.
Component Guide
Overview
Combobox is a searchable single-select: type to filter, then pick from a listbox. Options can carry keywords so aliases match too.
When to Use
- Single-choice fields with long lists.
- Lists where people know the name and type it, including aliases.
When Not to Use
- Short lists - use Select.
- Several values - use Multi Select.
- Search that navigates - use Expanding Search.
Best Practices
- Add keywords for synonyms and aliases.
- Pre-filter very large lists - results are not virtualised.
- Pair with a hidden input to post the value.
Accessibility
- Input is role=combobox with aria-expanded, controls and activedescendant.
- Options are role=option with aria-selected and aria-disabled.
- The empty state is a status row.
Related Components
Select, Multi Select, Autocomplete, Expanding Search.
{
"component": "Combobox",
"category": "Forms",
"summary": "Combobox is a searchable single-select: type to filter, then pick from a listbox. Options can carry keywords so aliases match too.",
"whenToUse": [
"Single-choice fields with long lists.",
"Lists where people know the name and type it, including aliases."
],
"whenNotToUse": [
"Short lists - use Select.",
"Several values - use Multi Select.",
"Search that navigates - use Expanding Search."
],
"bestPractices": [
"Add keywords for synonyms and aliases.",
"Pre-filter very large lists - results are not virtualised.",
"Pair with a hidden input to post the value."
],
"accessibility": [
"Input is role=combobox with aria-expanded, controls and activedescendant.",
"Options are role=option with aria-selected and aria-disabled.",
"The empty state is a status row."
],
"relatedComponents": [
"Select",
"Multi Select",
"Autocomplete",
"Expanding Search"
]
}