Home / File/ otp-01.json — ui Source File

otp-01.json — ui Source File

Architecture documentation for otp-01.json, a json file in the ui codebase.

Entity Profile

Source Code

{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "otp-01",
  "title": "OTP 01",
  "description": "A simple OTP verification form.",
  "registryDependencies": [
    "button",
    "card",
    "input-otp",
    "label",
    "field"
  ],
  "files": [
    {
      "path": "registry/base-lyra/blocks/otp-01/page.tsx",
      "content": "import { OTPForm } from \"@/registry/base-lyra/blocks/otp-01/components/otp-form\"\n\nexport default function OTPPage() {\n  return (\n    <div className=\"flex min-h-svh w-full items-center justify-center p-6 md:p-10\">\n      <div className=\"w-full max-w-xs\">\n        <OTPForm />\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/otp/page.tsx"
    },
    {
      "path": "registry/base-lyra/blocks/otp-01/components/otp-form.tsx",
      "content": "import { Button } from \"@/registry/base-lyra/ui/button\"\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardHeader,\n  CardTitle,\n} from \"@/registry/base-lyra/ui/card\"\nimport {\n  Field,\n  FieldDescription,\n  FieldGroup,\n  FieldLabel,\n} from \"@/registry/base-lyra/ui/field\"\nimport {\n  InputOTP,\n  InputOTPGroup,\n  InputOTPSlot,\n} from \"@/registry/base-lyra/ui/input-otp\"\n\nexport function OTPForm({ ...props }: React.ComponentProps<typeof Card>) {\n  return (\n    <Card {...props}>\n      <CardHeader>\n        <CardTitle>Enter verification code</CardTitle>\n        <CardDescription>We sent a 6-digit code to your email.</CardDescription>\n      </CardHeader>\n      <CardContent>\n        <form>\n          <FieldGroup>\n            <Field>\n              <FieldLabel htmlFor=\"otp\">Verification code</FieldLabel>\n              <InputOTP maxLength={6} id=\"otp\" required>\n                <InputOTPGroup className=\"gap-2.5 *:data-[slot=input-otp-slot]:rounded-md *:data-[slot=input-otp-slot]:border\">\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              <FieldDescription>\n                Enter the 6-digit code sent to your email.\n              </FieldDescription>\n            </Field>\n            <FieldGroup>\n              <Button type=\"submit\">Verify</Button>\n              <FieldDescription className=\"text-center\">\n                Didn&apos;t receive the code? <a href=\"#\">Resend</a>\n              </FieldDescription>\n            </FieldGroup>\n          </FieldGroup>\n        </form>\n      </CardContent>\n    </Card>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "authentication",
    "otp"
  ],
  "type": "registry:block"
}

Frequently Asked Questions

What does otp-01.json do?
otp-01.json is a source file in the ui codebase, written in json.
Where is otp-01.json in the architecture?
otp-01.json is located at apps/v4/public/r/styles/base-lyra/otp-01.json (directory: apps/v4/public/r/styles/base-lyra).

Analyze Your Own Codebase

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

Try Supermodel Free