{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "comp-45",
  "type": "registry:component",
  "title": "Comp 45",
  "description": "Comp 45",
  "files": [
    {
      "path": "registry/ui-basic/comp-45.tsx",
      "content": "\"use client\";\n\nimport { useId } from \"react\";\n\nimport { Label } from \"@/components/ui/label\";\nimport { OTPInput, SlotProps } from \"input-otp\";\nimport { MinusIcon } from \"lucide-react\";\n\nimport { cn } from \"../utilities/cn\";\n\nexport default function Component() {\n\tconst id = useId();\n\treturn (\n\t\t<div className=\"not-first:*:mt-2\">\n\t\t\t<Label htmlFor={id}>OTP input double</Label>\n\t\t\t<OTPInput\n\t\t\t\tid={id}\n\t\t\t\tcontainerClassName=\"flex items-center gap-3 has-disabled:opacity-50\"\n\t\t\t\tmaxLength={6}\n\t\t\t\trender={({ slots }) => (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<div className=\"flex\">\n\t\t\t\t\t\t\t{slots.slice(0, 3).map((slot, idx) => (\n\t\t\t\t\t\t\t\t<Slot key={idx} {...slot} />\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div className=\"text-muted-foreground/80\">\n\t\t\t\t\t\t\t<MinusIcon size={16} aria-hidden=\"true\" />\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div className=\"flex\">\n\t\t\t\t\t\t\t{slots.slice(3).map((slot, idx) => (\n\t\t\t\t\t\t\t\t<Slot key={idx} {...slot} />\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t/>\n\t\t\t<p\n\t\t\t\tclassName=\"text-muted-foreground mt-2 text-xs\"\n\t\t\t\trole=\"region\"\n\t\t\t\taria-live=\"polite\"\n\t\t\t>\n\t\t\t\tBuilt with{\" \"}\n\t\t\t\t<a\n\t\t\t\t\tclassName=\"hover:text-foreground underline\"\n\t\t\t\t\thref=\"https://github.com/guilhermerodz/input-otp\"\n\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\trel=\"noopener nofollow\"\n\t\t\t\t>\n\t\t\t\t\tInput OTP\n\t\t\t\t</a>\n\t\t\t</p>\n\t\t</div>\n\t);\n}\n\nfunction Slot(props: SlotProps) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t\"border-input bg-background text-foreground relative -ms-px flex size-9 items-center justify-center border font-medium shadow-2xs transition-[color,box-shadow] first:ms-0 first:rounded-s-md last:rounded-e-md\",\n\t\t\t\t{ \"border-ring ring-ring/50 z-10 ring-[3px]\": props.isActive }\n\t\t\t)}\n\t\t>\n\t\t\t{props.char !== null && <div>{props.char}</div>}\n\t\t</div>\n\t);\n}\n",
      "type": "registry:ui"
    },
    {
      "path": "components/ui/label.tsx",
      "content": "\"use client\";\n\nimport React from \"react\";\n\nimport { cn } from \"@/registry/utilities/cn\";\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nconst labelVariants = cva(\n\t\"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\"\n);\n\nconst Label = React.forwardRef<\n\tReact.ElementRef<typeof LabelPrimitive.Root>,\n\tReact.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n\t\tVariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n\t<LabelPrimitive.Root\n\t\tref={ref}\n\t\tclassName={cn(labelVariants(), className)}\n\t\t{...props}\n\t/>\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\n",
      "type": "registry:ui"
    },
    {
      "path": "registry/utilities/cn.ts",
      "content": "import { ClassValue, clsx } from \"clsx\";\r\nimport { twMerge } from \"tailwind-merge\";\r\n\r\nexport function cn(...inputs: ClassValue[]) {\r\n\treturn twMerge(clsx(inputs));\r\n}\r\n",
      "type": "registry:ui"
    }
  ]
}