- New York (UTC−5)
- London (UTC+0)
- Zürich (UTC+1)
- Tokyo (UTC+9)
- Sydney (UTC+11)
- No matching results
Combobox
Combobox lets people type to filter a long list and pick one option, or several with chips. Author the options; a small init() module filters and keeps ARIA in sync.
Public web API
An input with role="combobox" and a manual popover listbox. Focus stays in the input; aria-activedescendant points at the active option.
- Author every option with a unique
idand adata-value. Name the hidden input, never the text input. data-bitsy-combobox-multipleon the root adds chips from adata-bitsy-combobox-chip-template.- The
<input list>form needs no script and allows free text. init()fires a bubblingchangeevent on the root. Arrow keys move, Enter or click selects, Escape closes, a second Escape clears.
Variants and states
Try the keyboard: type, Down, Enter. Preselected options show a check.
- New York (UTC−5)
- London (UTC+0)
- Zürich (UTC+1)
- Tokyo (UTC+9)
- Sydney (UTC+11)
- No matching results
- New York (UTC−5)
- London (UTC+0)
- Zürich (UTC+1)
- Tokyo (UTC+9)
- Sydney (UTC+11)
- No matching results
- New York (UTC−5)
- London (UTC+0)
- Zürich (UTC+1)
- Tokyo (UTC+9)
- Sydney (UTC+11)
- No matching results
Pick a time zone from the list.
- New York (UTC−5)
- London (UTC+0)
- Zürich (UTC+1)
- Tokyo (UTC+9)
- Sydney (UTC+11)
- No matching results
- Design
- Bug
- Docs
- Infra
- No matching labels
Bit boundary
- Use Select or Radio Group for fewer than about 15 options, and Command Palette to run actions.
- Async options, inline autocomplete, and creating options from typed text are out of scope.