Skip to content
Block PartsPro

OTP Code Input

Large boxes for typing a 4- or 6-digit verification code.

Usage

Enter the 6-digit code we sent to alina@wunderui.dev

Installation

bash
npm install @wunderui/react

Then import what you need:

tsx
import { OtpCodeInput, OtpCodeInputProps } from "@wunderui/react"

API Reference

PropTypeDefault
length4 | 66
valuestring—
onValueChange(value: string) => void—
onComplete(value: string) => void—
invalidboolean—
disabledboolean—
autoFocusboolean—
classNamestring—