ComponentsSearchable select

Searchable select

Filter a grouped dropdown and select one or more named options.

Example

Choose the team responsible for this project.

Setup

Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.

Multiple teams

Select several teams and remove individual choices from the field.

Example

Choose every team that should review this project.

Usage

Form integrationAuthor a labeled select and give it a name. The native element holds the value, supports form reset and validation, and submits multiple choices as repeated values.
KeyboardOpen the picker, type to filter, and use the arrow keys or Enter to reach a result. Use Enter or Space in the list to select and Escape to return to the trigger.
Framework stateIn React, pass value and onChange. In Vue, bind v-model. Use a string for one selection or an array of strings for multiple selections.
HTML stateListen for input or change on the native select. When setting its value directly in JavaScript, dispatch a bubbling change event to refresh the visible selection.