Skip to main content

OTP Input

One-time code entry with per-digit inputs, paste support, and field shell errors.

6 digits (default)

4 digits

With hint

Error

Disabled

API

PropRequiredTypeDefaultDescription
themeOptionalSiteThemeatelierVisual theme.
lengthOptionalnumber6Number of digits.
value / onChangeOptionalstring + callback—Controlled code string.
nameOptionalstring—Hidden input name for forms.
error / hintOptionalstring—Field validation messaging.