Forms
Combobox
An autocomplete input and command palette featuring a list of suggestions.
Shadcn UI
This component is part of Shadcn UI with some modifications.
Preview
Usage
Multiple
Async Combobox
We provide a prop withFetcher
to handle the async data fetching.
withFetcher Reference
Prop | Type | Default |
---|---|---|
queryKey | string | - |
search | boolean | false |
queryFn | (params: { search: string }) => Promise<{ key: string; value: string | StringLanguage[]; valueWithFormatting: React.ReactNode }[]> | - |
Multiple withFetcher
API Reference
Prop | Type | Default |
---|---|---|
placeholderSearchInput | string | - |
labels | Record<string, string> | - |
multiple | boolean | false |