Description
Is your feature request related to a problem? Please describe.
Currently there is no way to set the displayed input text of the Combobox. The value
prop is expected to be a selectable option, so if I want to set the input to something else, it will result in nothing being displayed for the input text.
Describe the solution you'd like
As there is already a separate onInputChange
prop for handling changes to the filter text, it would be good if there was also a prop, something like inputValue
which can be used to set the filter text in a controlled manner.
Describe alternatives you've considered
The only other option is to add the text as an option. This may work for most scenarios, but is not always desirable.
Alternatively, a datalist can be used to turn a regular text input into a selectable list similar to a combobox (but much harder to style)
Additional context
The current combobox design seems to be like a filterable selection input.
That is one usecase for a combobox, but it can also be useful as a text input with some default options.
It would be great if Kobalte could support both usecases.