Home / File/ input-otp-pattern.tsx — ui Source File

input-otp-pattern.tsx — ui Source File

Architecture documentation for input-otp-pattern.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  ff20dff3_d968_6db4_78e3_f3a94fd0669b["input-otp-pattern.tsx"]
  46c758ca_dd64_66c4_37b9_b30acc3c853c["input-otp"]
  ff20dff3_d968_6db4_78e3_f3a94fd0669b --> 46c758ca_dd64_66c4_37b9_b30acc3c853c
  88c48e6d_a51e_3318_2669_2615a4d6c146["input-otp"]
  ff20dff3_d968_6db4_78e3_f3a94fd0669b --> 88c48e6d_a51e_3318_2669_2615a4d6c146
  style ff20dff3_d968_6db4_78e3_f3a94fd0669b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { REGEXP_ONLY_DIGITS_AND_CHARS } from "input-otp"

import {
  InputOTP,
  InputOTPGroup,
  InputOTPSlot,
} from "@/registry/default/ui/input-otp"

export default function InputOTPPattern() {
  return (
    <InputOTP maxLength={6} pattern={REGEXP_ONLY_DIGITS_AND_CHARS}>
      <InputOTPGroup>
        <InputOTPSlot index={0} />
        <InputOTPSlot index={1} />
        <InputOTPSlot index={2} />
        <InputOTPSlot index={3} />
        <InputOTPSlot index={4} />
        <InputOTPSlot index={5} />
      </InputOTPGroup>
    </InputOTP>
  )
}

Subdomains

Functions

Dependencies

  • input-otp
  • input-otp

Frequently Asked Questions

What does input-otp-pattern.tsx do?
input-otp-pattern.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in input-otp-pattern.tsx?
input-otp-pattern.tsx defines 1 function(s): InputOTPPattern.
What does input-otp-pattern.tsx depend on?
input-otp-pattern.tsx imports 2 module(s): input-otp, input-otp.
Where is input-otp-pattern.tsx in the architecture?
input-otp-pattern.tsx is located at deprecated/www/registry/default/examples/input-otp-pattern.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/examples).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free