"use client" import * as React from "react" import { REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS } from "input-otp" import { Example, ExampleWrapper, } from "@/registry/bases/base/components/example" import { Button } from "@/registry/bases/base/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/registry/bases/base/ui/card" import { Field, FieldDescription, FieldError, FieldLabel, } from "@/registry/bases/base/ui/field" import { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, } from "@/registry/bases/base/ui/input-otp" import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder" export default function InputOTPExample() { return ( ) } function InputOTPSimple() { return ( Simple ) } function InputOTPPattern() { return ( Digits Only ) } function InputOTPWithSeparator() { const [value, setValue] = React.useState("123456") return ( With Separator ) } function InputOTPAlphanumeric() { return ( Alphanumeric Accepts both letters and numbers. ) } function InputOTPDisabled() { return ( Disabled ) } function InputOTPFourDigits() { return ( 4 Digits Common pattern for PIN codes. ) } function InputOTPInvalid() { const [value, setValue] = React.useState("000000") return ( Invalid State Example showing the invalid error state. ) } function InputOTPForm() { return ( Verify your login Enter the verification code we sent to your email address:{" "} m@example.com. Verification code Resend Code I no longer have access to this email address. Verify Having trouble signing in?{" "} Contact support ) }