Skip to Content
UI Kit
Components (172)

OTP Input

Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.

Open preview
Loading OTP Input…

Usage

import { OtpInput } from "ui-kit/components/otp-input";

Props

PropTypeDefaultDescription
lengthnumber6—
separatorboolean | numberfalse—
numericbooleantrue—
valuestring——
defaultValuestring""—
onChange(code: string) => void——
onComplete(code: string) => void——
statusOtpStatus"idle"—
errorMessageReactNode——
clearOnErrorbooleantrue—
successLabelstring"Verified"—
onResend() => void——
resendInnumber30—
align"start" | "center""start"—
disabledbooleanfalse—
autoFocusbooleanfalse—
labelstring"Verification code"—
classNamestring——

On this page