Home / Function/ InputOTPFourDigits() — ui Function Reference

InputOTPFourDigits() — ui Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

apps/v4/registry/bases/radix/examples/input-otp-example.tsx lines 175–192

function InputOTPFourDigits() {
  return (
    <Example title="4 Digits">
      <Field>
        <FieldLabel htmlFor="four-digits">4 Digits</FieldLabel>
        <FieldDescription>Common pattern for PIN codes.</FieldDescription>
        <InputOTP id="four-digits" maxLength={4} pattern={REGEXP_ONLY_DIGITS}>
          <InputOTPGroup>
            <InputOTPSlot index={0} />
            <InputOTPSlot index={1} />
            <InputOTPSlot index={2} />
            <InputOTPSlot index={3} />
          </InputOTPGroup>
        </InputOTP>
      </Field>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free