Combobox
A production-scale, light + dark Combobox component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add comboboxLive preview available in the gallery.
Usage
import { Combobox } from "@lerpa/ui";
<Combobox />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| options | ComboboxOption[] | — | |
| value | string | — | |
| defaultValue | string | — | |
| onValueChange | (value: string) => void | — | |
| inputValue | string | — | |
| defaultInputValue | string | — | |
| onInputChange | (text: string) => void | — | |
| placeholder | string | — | |
| emptyMessage | React.ReactNode | — | |
| clearable | boolean | — | |
| disabled | boolean | — | |
| id | string | — | |
| name | string | — | |
| className | string | — | |
| contentClassName | string | — | |
| filter | (option: ComboboxOption, query: string) => boolean | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.