Skip to content
kapable

InputOTP

Forms · 1 export · v0.1.0 · showcase

Single native text input for one-time codes so autofill, paste, and leading zeroes remain intact.

Browse 72 component families

Enter the six-digit code.

Usage

InputOTP usage
<InputOTP label="Verification code" name="code" length={6} pattern="[0-9]{6}" />

API

InputOTP API

InputOTPProps

InputOTP props
proptypenotes
labelstring
namestring
lengthnumber
id?string
defaultValue?string
inputMode?'numeric' | 'text'
pattern?string
error?string | null
hint?RemixNode
required?boolean
disabled?boolean
readOnly?boolean
autoComplete?'one-time-code' | 'off'
enterKeyHint?'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'
mix?MixInput

More in Forms

More in Forms