input-otp-controlled.json — ui Source File
Architecture documentation for input-otp-controlled.json, a json file in the ui codebase.
Entity Profile
Source Code
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "input-otp-controlled",
"type": "registry:example",
"registryDependencies": [
"input-otp"
],
"files": [
{
"path": "registry/new-york-v4/examples/input-otp-controlled.tsx",
"content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n InputOTP,\n InputOTPGroup,\n InputOTPSlot,\n} from \"@/registry/new-york-v4/ui/input-otp\"\n\nexport default function InputOTPControlled() {\n const [value, setValue] = React.useState(\"\")\n\n return (\n <div className=\"space-y-2\">\n <InputOTP\n maxLength={6}\n value={value}\n onChange={(value) => setValue(value)}\n >\n <InputOTPGroup>\n <InputOTPSlot index={0} />\n <InputOTPSlot index={1} />\n <InputOTPSlot index={2} />\n <InputOTPSlot index={3} />\n <InputOTPSlot index={4} />\n <InputOTPSlot index={5} />\n </InputOTPGroup>\n </InputOTP>\n <div className=\"text-center text-sm\">\n {value === \"\" ? (\n <>Enter your one-time password.</>\n ) : (\n <>You entered: {value}</>\n )}\n </div>\n </div>\n )\n}\n",
"type": "registry:example"
}
]
}
Source
Frequently Asked Questions
What does input-otp-controlled.json do?
input-otp-controlled.json is a source file in the ui codebase, written in json.
Where is input-otp-controlled.json in the architecture?
input-otp-controlled.json is located at deprecated/www/public/r/styles/new-york-v4/input-otp-controlled.json (directory: deprecated/www/public/r/styles/new-york-v4).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free