"use client" import * as React from "react" import { useState } from "react" import { Field, FieldDescription, FieldGroup, FieldLabel, } from "@/examples/radix/ui/field" import { Input } from "@/examples/radix/ui/input" import { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, } from "@/examples/radix/ui/input-otp" import { REGEXP_ONLY_DIGITS } from "input-otp" export function InputOTPFields() { const [value, setValue] = useState("") const [pinValue, setPinValue] = useState("") return ( Verification Code Enter OTP Enter the 6-digit code sent to your email. Two-Factor Authentication Enter the code from your authenticator app. PIN Code Enter your 4-digit PIN (numbers only). Invalid OTP This OTP field contains validation errors. Disabled OTP This OTP field is currently disabled. ) }