Home / Function/ InputOTPAlphanumeric() — ui Function Reference

InputOTPAlphanumeric() — ui Function Reference

Architecture documentation for the InputOTPAlphanumeric() function in input-otp-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  208ce620_1cb1_ae04_c4b7_48871af6bed2["InputOTPAlphanumeric()"]
  4aa10f6b_4776_aa23_5fe8_83405d831575["input-otp-example.tsx"]
  208ce620_1cb1_ae04_c4b7_48871af6bed2 -->|defined in| 4aa10f6b_4776_aa23_5fe8_83405d831575
  style 208ce620_1cb1_ae04_c4b7_48871af6bed2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/examples/input-otp-example.tsx lines 124–150

function InputOTPAlphanumeric() {
  return (
    <Example title="Alphanumeric">
      <Field>
        <FieldLabel htmlFor="alphanumeric">Alphanumeric</FieldLabel>
        <FieldDescription>Accepts both letters and numbers.</FieldDescription>
        <InputOTP
          id="alphanumeric"
          maxLength={6}
          pattern={REGEXP_ONLY_DIGITS_AND_CHARS}
        >
          <InputOTPGroup>
            <InputOTPSlot index={0} />
            <InputOTPSlot index={1} />
            <InputOTPSlot index={2} />
          </InputOTPGroup>
          <InputOTPSeparator />
          <InputOTPGroup>
            <InputOTPSlot index={3} />
            <InputOTPSlot index={4} />
            <InputOTPSlot index={5} />
          </InputOTPGroup>
        </InputOTP>
      </Field>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does InputOTPAlphanumeric() do?
InputOTPAlphanumeric() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/input-otp-example.tsx.
Where is InputOTPAlphanumeric() defined?
InputOTPAlphanumeric() is defined in apps/v4/registry/bases/radix/examples/input-otp-example.tsx at line 124.

Analyze Your Own Codebase

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

Try Supermodel Free