NOCTA UI

OTP Input

Secure multi-digit input for one-time passwords with paste support, validation states, and full keyboard control.

Installation

Install the OTP Input component using the nocta-ui CLI:

npx @nocta-ui/cli add otp-input

Import the component:

import { OTPInput } from '@/components/ui/otp-input';

Examples

Default OTP Input

One-time password

Enter the 6-digit code.

API Reference

Prop

Type