Components · Combobox
Combobox
Editable selection field with filterable popup options.
Anatomy
- 1
.combobox-rootCombobox state and composition boundary. - 2
.combobox-labelAccessible control label. - 3
.combobox-chipsRow of selected values in a multi-select combobox. Holds `chip-root` children. - 4
.combobox-controlInput, trigger, and clear-action container. - 5
.combobox-inputEditable query/value. - 6
.combobox-triggerOpens or closes the popup. - 7
.combobox-clear-triggerClears the current query or value. - 8
.combobox-positionerAnchored popup positioning layer. - 9
.combobox-contentPopup listbox surface. Matches the trigger width unless the consumer sets the Etesie extension --et-menu-min-inline-size. - 10
.combobox-listOption list inside the popup; carries the listbox role when non-composite. - 11
.combobox-item-groupSemantic option group. - 12
.combobox-item-group-labelLabel for a group of options. - 13
.combobox-itemOne selectable option. - 14
.combobox-item-textPrimary option label. - 15
.combobox-item-indicatorSelected option marker. - 16
.combobox-emptyMessage shown when the query matches no options.
Slots
What the component can hold. Every other combination — emphasis, size, shape — is a configuration; pick those in Use.
Svelte
React
Vue
Svelte
Svelte
React
Vue
Compilers
Svelte
Solid
Runtimes
React
Vue
When to use
Use a combobox when people benefit from filtering a long option list or entering a value while they search.