Combobox
A pill input with a filtered list: matches highlighted, async results, chips for many, create.
<div className="w-320">
<Combobox label="Model" options={options} placeholder="Search models" emptyText="No models match" defaultValue="gpt-5" />
</div>import { Combobox } from "@logicplanes/kaeso-ui";Props
aria-labelstringThe accessible name, for when there is no visible label.
createLabel((label: string) => string)The words of the offer to add what was typed;
Add “…”by default.defaultValuestring | string[] | nullThe value on first render, when the component keeps its own value.
descriptionReactNodeOne sentence of help under the label.
disabledbooleanTurns it off: it can't be used, and it looks dimmed.
emptyTextReactNodeWhat the empty list says: "No models match". Defaults to "No matches for" and the typed text, in the provider's language.
errorReactNodeThe error message, shown under the control in the danger color; it marks the control invalid and is read out with its description.
idstringThe id of the control, so a label elsewhere can point to it.
invalidbooleanShows it as invalid; pair it with a message that says what to fix.
labelReactNodeThe visible label.
layout"horizontal" | "vertical"The label above the control (
vertical) or beside it (horizontal).loadingbooleanShows a quiet progress line at the top of the list (async results) once loading takes 300ms; with reduced motion, only the words.
multiplebooleanAllows choosing more than one option;
valueis then a list.namestringThe field name the value is sent under in a form.
onCreate((label: string) => void)Offers "Add “…”" when nothing matches exactly.
onInputValueChange((value: string) => void)Called with the text typed into the input, and with an empty string once a pick clears the search, so a server search lists every option again.
onValueChange((value: string | null) => void) | ((value: string[]) => void)Called with the chosen value, or the list of values with
multiple.optionalbooleanAdds “Optional” to the label, for forms where most fields are required.
optionsComboboxOption[]The options to choose from: a label, and optionally a description under it, a short meta value on the row's end (such as a time zone's offset), and a leading icon or element.
placeholderstringText shown while there is no value.
requiredbooleanMarks it as required in a form.
searchDelaynumberMilliseconds of quiet typing before
onInputValueChangeis called, so a server search runs once per pause, not per keystroke.size"md" | "sm" | "lg" | "xl"The height of the input.
valuestring | string[] | nullThe chosen value, or a list of values with
multiple, when you control it.