Input
A pill text field with the secondary material and a soft focus halo.
<div className="w-320">
<Input aria-label="Key name" placeholder="checkout-web" />
</div>import { Input } from "@logicplanes/kaeso-ui";Props
align"start" | "end"Text alignment of the value; numbers align to the end with tabular digits.
defaultRevealedboolean = falseStarts a password or secret shown instead of masked.
descriptionReactNodeOne sentence of help under the label.
errorReactNodeThe error message, shown under the control in the danger color; it marks the control invalid and is read out with its description.
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).leadingIconIconSvgElementAn icon before the text.
onClear(() => void)Called when a search's clear circle is pressed or Escape clears it.
optionalbooleanAdds “Optional” to the label, for forms where most fields are required.
prefixReactNodeText before the value: "https://".
secretbooleanMasks a key or token behind a reveal circle, sets it in mono when revealed, and keeps it out of autocomplete and password managers.
shortcutstring[]A shortcut hint at the end of an empty search, hidden while it has focus.
size"md" | "sm" | "lg" | "xl"The height of the input: 32px in toolbars, 36px by default.
suffixReactNodeText after the value: "USD", "/ min".
trailingReactNodeAny trailing element (a button, a Kbd).