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