Select

A dropdown component that allows users to select one or multiple options from a list.

Overview

Toggles
disabled, multiple

All options

Selection and state

mode \ stateplaceholderselecteddisabled
single
multiple

Decoration icon

icon \ stateenableddisabled
none
decoIconName

Examples

Basic

Options with icons

Multiple

Accessibility

Keyboard

Focus the select and press Enter, Space or an arrow key to open it. Arrow keys move through the options, Home and End jump to the first and last, Enter picks the highlighted option and Escape closes the list.

Semantics

The trigger is a combobox that controls a listbox of option items; the highlighted option is exposed with aria-activedescendant while focus stays on the trigger. Multiple selects set aria-multiselectable, and a disabled select is removed from the Tab order.

Props

SelectOption

PropTypeRequiredDescription
valuestringYes—
labelstringYes—
iconNamestringNo—

SelectProps

PropTypeRequiredDescription
valuestring | string[]No—
optionsSelectOption[]Yes—
onChange(value: string | string[]) => voidNo—
disabledbooleanNo—
placeholderstringNo—
decoIconNamestringNo—
widthnumber | stringNo—
multiplebooleanNo—
classNamestringNo—