primitives/@mihcm/ui·v0.21.0·stable
Combobox
Autocomplete search input combining a text field with a filterable dropdown list. Ideal for large option sets.
Props
The full prop API for Combobox. Same surface in web and React Native — bundlers pick the right variant via the react-native export condition.
| Prop | Type | Default | Description | Since |
|---|---|---|---|---|
options | ComboboxOption[] | — | List of selectable options ({ value, label, disabled? }). | 0.5.0 |
value | string | — | Currently selected value. | 0.5.0 |
onValueChange | (value: string) => void | — | Called when selection changes. | 0.5.0 |
placeholder | string | 'Select…' | Shown when nothing is selected. | 0.5.0 |
searchPlaceholder | string | 'Search…' | Placeholder for the search input. | 0.5.0 |
emptyText | string | 'No results found.' | Shown when search matches nothing. | 0.5.0 |
disabled | boolean | false | Disables the combobox. | 0.5.0 |
Import
import { Combobox } from '@mihcm/ui/Combobox';