SearchInput
Search with a leading icon, a clear circle when filled, and a shortcut hint where one was asked for.
<div className="w-240">
<SearchInput aria-label="Search logs" placeholder="Search logs" />
</div>import { SearchInput } from "@logicplanes/kaeso-ui";Props
align"start" | "end"Text alignment of the value; numbers align to the end with tabular digits.
descriptionReactNodeOne sentence of help under the label.
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).onClear(() => void)Called when the clear button is pressed.
optionalbooleanAdds “Optional” to the label, for forms where most fields are required.
placeholderstringDefaults to "Search" in the provider's language.
shortcutstring[]A shortcut hint shown while empty:
["mod", "k"]or["/"].size"md" | "sm" | "lg" | "xl" = smThe height of the input.
trailingReactNodeAny trailing element (a button, a Kbd).