Skip to content

Keyboard ​

flow-select follows the WAI-ARIA combobox pattern. Focus never gets trapped: Tab always moves to the next field.

Closed ​

KeyAction
↓ ↑ EnterOpens the list on the chosen option
SpaceOpens the list (types a space in inline search)
Home EndOpens on the first or last option
LettersWithout search: chooses the next option starting with them, like a native select. With search: opens and starts searching
Backspace DeleteClears a clearable select. Multiple: Backspace removes the last chip
EscNothing, so a surrounding dialog can close
TabNext field

Open ​

KeyAction
↓ ↑Moves the highlight, skipping disabled options
Page Down Page UpMoves ten options
Home EndFirst or last option (moves the text cursor while you have typed something)
EnterChooses the highlighted option. Multiple: adds or removes it
SpaceChooses the highlighted option when not typing
Alt + ↑Chooses and closes
LettersFilters, or jumps to the next match without search
EscCloses without changes and keeps focus
TabCloses and moves to the next field

Chips ​

In a multiple select with an empty input:

KeyAction
←Highlights the last chip
← →Moves between chips; → after the last returns to the input
Backspace DeleteRemoves the highlighted chip

Forms ​

Enter inside a flow-select never submits the surrounding form.

Released under the MIT License.