1
2
3
4

Input OTP

A one-time password input component for verification codes.

Input component for OTP and verification codes.

Usage

import { InputOTP, InputOTPGroup, InputOTPSlot } from "@delphi/ui";

export function Example() {
  return (
    <InputOTP maxLength={6}>
      <InputOTPGroup>
        <InputOTPSlot index={0} />
        <InputOTPSlot index={1} />
        <InputOTPSlot index={2} />
        <InputOTPSlot index={3} />
        <InputOTPSlot index={4} />
        <InputOTPSlot index={5} />
      </InputOTPGroup>
    </InputOTP>
  );
}
ESC
No results found