Autocomplete
Free text with suggestions.
<div className="w-320">
<Autocomplete
label="Endpoint"
leadingIcon={icons.route}
suggestions={["/v1/responses", "/v1/chat/completions", "/v1/messages", "/v1/embeddings"]}
placeholder="/v1/…"
/>
</div>import { Autocomplete } from "@logicplanes/kaeso-ui";Props
aria-labelstringThe accessible name, for when there is no visible label.
defaultValuestringThe text in the input on first render.
descriptionReactNodeOne sentence of help under the label.
disabledbooleanTurns it off: it can't be used, and it looks dimmed.
idstringThe id of the control, so a label elsewhere can point to it.
labelReactNodeThe visible label.
layout"horizontal" | "vertical"The label above the control (
vertical) or beside it (horizontal).leadingIconIconSvgElementAn icon at the start of the input.
namestringThe field name the value is sent under in a form.
onValueChange((value: string) => void)Called with the text whenever it changes.
optionalbooleanAdds “Optional” to the label, for forms where most fields are required.
placeholderstringText shown while there is no value.
requiredbooleanMarks it as required in a form.
size"md" | "sm" | "lg" | "xl"The height of the input.
suggestionsstring[]Suggestions; the value is free text.
valuestringThe text in the input, when you control it.