Combobox

Combobox is an input and dropdown-based selection, which allows for quick filtering of single and multi-selections.

Overview

Combobox is designed for situations where a dropdown or list has a large amount of choices to sift through. The type-ahead property of Combobox allows the user to quickly type and search for available selections.

Multi-select Combobox utilizes Chips to display selected items, which can quickly be deleted by selecting the "Closable" icon or pressing the Backspace key when focused.

Usage

  • Multi-select purposes
  • Filtering

Sample

Best practices

To disable the ability to clear a selection when selectionMode is set to "single-persist", set the clearDisabled property to true.

Accessibility

Keyboard navigation

KeyFunction
BackspaceWhen the component is focused and contains a selected calcite-combobox-item will remove the most recently added from the component.
SpaceIf the component is not open, opens the component.
Arrow upOnce the component is open and in focus, moves focus to previous calcite-combobox-item. If the current focus is the first calcite-combobox-item, focus will cycle to the last calcite-combobox-item.
Arrow downOnce the component is open and in focus, move focus to next calcite-combobox-item. If the current focus is the last calcite-combobox-item, focus will cycle to the first calcite-combobox-item.
EnterIf the component is open and a calcite-combobox-item is active, will toggle it's selected state.
EscIf the component is open, closes the component.
TabMoves focus in and out of the component.
Tab and ShiftMoves focus in and out of the component.

API reference

Properties

Slots

Styles

Events

Methods

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.