ComboboxAsync
v1.0.9Updated 27 Aug 2026Async-loading combobox with debounced fetch, optional creatable entries, multi-select with chips, free-solo input, and grouped results. Exports ComboboxAsync + ComboboxAsyncMulti.
Preview
Live · 10 stories▸Why this is recommendedcomboboxautocompleteasyncserver-search+4
ComboboxAsync loading its data asynchronously.
- ✓Customer or supplier lookup against a server API
- ✓Searching a product catalogue too large to preload
- ✓Owner / assignee pickers backed by a user-search endpoint
- ✓Address or place autocomplete
- ✓Pick-or-create a customer while drafting an invoice
- ✓Any picker over thousands of records that must be queried per keystroke
- Host-driven async loading via onSearchChange + options
- Loading spinner and error panel with a Retry button
- Creatable: "Create '<query>'" row when there is no exact match
- Free-solo: commit arbitrary typed text as the value
- Grouped results with headings plus a meta line per option
- Enter commits the create / free-solo row
- Custom trigger via the `trigger` prop
- ✕Static option sets already in memory (use Combobox)
- ✕Selecting multiple values (use ComboboxAsyncMulti)
- ✕Plain free-text entry with no suggestions (use Input)
- ✕Command palettes and action menus (use Command)
Install
Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.
Usage
Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.
Props
optionsCurrent result set — the host replaces it in response to onSearchChange
yesonSearchChangeFires on every keystroke; the host should debounce and fetch. Supplying it also turns off the built-in cmdk filter
—valueSelected option value (or raw text when freeSolo)
—onValueChangeFires on select; re-selecting the current value clears it
—loadingShow the loading spinner in the list
—errorError message; replaces the list with an error panel
—onRetryShows a Retry button inside the error panel
—creatableShow a "Create '<query>'" row when no option matches exactly
—onCreateCalled with the query on create; the host owns value assignment. Without it, the query is committed as the value
—freeSoloAllow committing any typed text as the value
—placeholderTrigger text when nothing is selected (default "Select…")
—triggerReplace the default trigger button; the forwarded ref stays on the default trigger
—disabledDisable the trigger
—