components / combobox
combobox.
searchable select with optional color swatches, inline create, and clear. behavior split into a headless useCombobox hook. generalized from the calendar category picker.
installation
bunx @justin06lee/chrome@latest add comboboxprops
| name | type | default | description |
|---|---|---|---|
| value * | T | null | - | |
| onChange * | (value: T | null) => void | - | |
| options * | ComboboxOption<T>[] | - | { value, label, color? }[] |
| allowClear | boolean | - | show a Clear row when selected. |
| onCreate | (query: string) => void | - | renders a '+ Create' row. |