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.
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).leadingIconIconSvgElementAn icon before the text.
optionalbooleanAdds “Optional” to the label, for forms where most fields are required.
prefixReactNodeText before the value: "https://".
size"md" | "sm" | "lg" | "xl" = smThe height of the input.
suffixReactNodeText after the value: "USD", "/ min".
trailingReactNodeAny trailing element (a button, a Kbd).