SensitiveInput
Secrets masked by default, an eye to reveal, mono when revealed, never autocompleted.
Only the last four characters stay visible after saving.
<div className="w-400">
<SensitiveInput label="Provider key" description="Only the last four characters stay visible after saving." placeholder="sk-ant-…" />
</div>import { SensitiveInput } from "@logicplanes/kaeso-ui";Props
align"start" | "end"Text alignment of the value; numbers align to the end with tabular digits.
defaultRevealedboolean = falseStart revealed.
descriptionReactNodeOne sentence of help under the label.
invalidbooleanShows it as invalid; pair it with a message that says what to fix.
kind"password" | "secret" = secretA password (never revealed once saved) or a secret such as an API key.
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"The height of the input.
suffixReactNodeText after the value: "USD", "/ min".