Components (172)
OTP Input
Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.
Loading OTP Input…
Usage
import { OtpInput } from "ui-kit/components/otp-input";Props
| Prop | Type | Default | Description |
|---|---|---|---|
length | number | 6 | — |
separator | boolean | number | false | — |
numeric | boolean | true | — |
value | string | — | — |
defaultValue | string | "" | — |
onChange | (code: string) => void | — | — |
onComplete | (code: string) => void | — | — |
status | OtpStatus | "idle" | — |
errorMessage | ReactNode | — | — |
clearOnError | boolean | true | — |
successLabel | string | "Verified" | — |
onResend | () => void | — | — |
resendIn | number | 30 | — |
align | "start" | "center" | "start" | — |
disabled | boolean | false | — |
autoFocus | boolean | false | — |
label | string | "Verification code" | — |
className | string | — | — |