Combobox
Picks a value from a list you can filter by typing.
When to use
- Use when
- Choosing from a long list where typing to filter is faster than scrolling.
- Avoid when
- The list has only a few options; use Select or Radio Group.
Installation
The source lands in src/components/ui/combobox.tsx, along with any Shelf items it builds on, and .shelf/lock.json records what was installed. It's yours to edit.
Usage
Built on
Verified
- Size
- 3.3 kB gzipped on its own, 53 kB with the Shelf items and packages it builds on. JS and CSS in a production build, without React.
- Accessibility
- Axe passes on 5 stories
- Behavior
- 5 interaction tests in Storybook
- React Doctor
- React Doctor finds nothing