{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/input-24","type":"registry:component","title":"Input 24","description":"An email input field with an animated floating label that moves on focus","registryDependencies":["input"],"files":[{"path":"src/registry/new-york/components/input/input-24.tsx","content":"import { useId } from 'react'\n\nimport { Input } from '@/registry/new-york/ui/input'\n\nconst InputFloatingLabelDemo = () => {\n  const id = useId()\n\n  return (\n    <div className='group relative w-full max-w-xs'>\n      <label\n        htmlFor={id}\n        className='origin-start text-muted-foreground group-focus-within:text-foreground has-[+input:not(:placeholder-shown)]:text-foreground absolute top-1/2 block -translate-y-1/2 cursor-text px-2 text-sm transition-all group-focus-within:pointer-events-none group-focus-within:top-0 group-focus-within:cursor-default group-focus-within:text-xs group-focus-within:font-medium has-[+input:not(:placeholder-shown)]:pointer-events-none has-[+input:not(:placeholder-shown)]:top-0 has-[+input:not(:placeholder-shown)]:cursor-default has-[+input:not(:placeholder-shown)]:text-xs has-[+input:not(:placeholder-shown)]:font-medium'\n      >\n        <span className='bg-background inline-flex px-1'>Input with floating label</span>\n      </label>\n      <Input id={id} type='email' placeholder=' ' className='dark:bg-background' />\n    </div>\n  )\n}\n\nexport default InputFloatingLabelDemo\n","type":"registry:component","target":"components/shadcn-studio/input/input-24.tsx"}]}