OTP input

CoreBlock

A six digit verification flow with paste support and keyboard navigation.

pnpm dlx shadcn@latest add https://wui.alann.works/r/otp-input.json
Verification code

API Reference

PropTypeDefault
lengthnumber—
valuestring—
onChange(value: string) => void—
label*stringrequired
descriptionstring—
errorstring—
autoFocusboolean—
disabledboolean—
inputMode"numeric" | "text"—
classNamestring—
Categories
blocks
Dependencies
motion