OTPInput
Six cells for a TOTP code over one accessible input: paste fills, Backspace moves back.
<Field label="Code from your authenticator app">
<OTPInput />
</Field>import { OTPInput } from "@logicplanes/kaeso-ui";Props
defaultValuestringThe code on first render.
invalidbooleanShows it as invalid; pair it with a message that says what to fix.
lengthnumber = 6How many characters the code has.
onComplete((value: string) => void)Called once every cell is filled.
onValueChange((value: string) => void)Called with the code as it is typed.
size"md" | "sm" = mdThe size of each character's box.
valuestringThe code typed so far, when you control it.