input-otp-controlled.tsx — ui Source File
Architecture documentation for input-otp-controlled.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 24dffedc_1ec2_f66b_1826_8d891f24cd3a["input-otp-controlled.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 24dffedc_1ec2_f66b_1826_8d891f24cd3a --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 5265f3fe_8cd8_5588_7be1_ffd3de687f74["input-otp"] 24dffedc_1ec2_f66b_1826_8d891f24cd3a --> 5265f3fe_8cd8_5588_7be1_ffd3de687f74 style 24dffedc_1ec2_f66b_1826_8d891f24cd3a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import {
InputOTP,
InputOTPGroup,
InputOTPSlot,
} from "@/registry/new-york-v4/ui/input-otp"
export default function InputOTPControlled() {
const [value, setValue] = React.useState("")
return (
<div className="space-y-2">
<InputOTP
maxLength={6}
value={value}
onChange={(value) => setValue(value)}
>
<InputOTPGroup>
<InputOTPSlot index={0} />
<InputOTPSlot index={1} />
<InputOTPSlot index={2} />
<InputOTPSlot index={3} />
<InputOTPSlot index={4} />
<InputOTPSlot index={5} />
</InputOTPGroup>
</InputOTP>
<div className="text-center text-sm">
{value === "" ? (
<>Enter your one-time password.</>
) : (
<>You entered: {value}</>
)}
</div>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- input-otp
- react
Source
Frequently Asked Questions
What does input-otp-controlled.tsx do?
input-otp-controlled.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-controlled.tsx?
input-otp-controlled.tsx defines 1 function(s): InputOTPControlled.
What does input-otp-controlled.tsx depend on?
input-otp-controlled.tsx imports 2 module(s): input-otp, react.
Where is input-otp-controlled.tsx in the architecture?
input-otp-controlled.tsx is located at apps/v4/registry/new-york-v4/examples/input-otp-controlled.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free