Documentation
OTP Input

OTP Input

A fully customizable, one-time password input component for the web built with Input from Neon.

Usage

import React, { useState } from 'react';
import { OTPInput } from '@inspectra/ui';
 
export default function App() {
  const [otp, setOtp] = useState('');
 
  return (
    <OTPInput
      value={otp}
      onChange={setOtp}
      numInputs={4}
    />
  );
}

API Reference

PropTypeDefault
numInputs
number
onChange
(otp: string) => void
value
string