{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/input-23","type":"registry:component","title":"Input 23","description":"An email input field with an overlapping label positioned over the border","registryDependencies":["input","label"],"files":[{"path":"src/registry/new-york/components/input/input-23.tsx","content":"import { useId } from 'react'\n\nimport { Input } from '@/registry/new-york/ui/input'\nimport { Label } from '@/registry/new-york/ui/label'\n\nconst InputOverlappingLabelDemo = () => {\n  const id = useId()\n\n  return (\n    <div className='group relative w-full max-w-xs'>\n      <Label\n        htmlFor={id}\n        className='bg-background text-foreground absolute top-0 left-2 z-1 block -translate-y-1/2 px-1 text-xs'\n      >\n        Input with overlapping label\n      </Label>\n      <Input id={id} type='email' placeholder='Email address' className='dark:bg-background h-10' />\n    </div>\n  )\n}\n\nexport default InputOverlappingLabelDemo\n","type":"registry:component","target":"components/shadcn-studio/input/input-23.tsx"}]}