{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "floating-label-input-shadcnui", "type": "registry:component", "title": "Floating Label Input", "description": "Input with animated floating label", "registryDependencies": [ "button" ], "dependencies": [ "framer-motion", "react" ], "files": [ { "path": "@uitripled/react-shadcn/src/components/components/inputs/floating-label-input.tsx", "content": "\"use client\";\n\nimport { Input } from \"@/components/ui/input\";\nimport { motion } from \"framer-motion\";\nimport { useState } from \"react\";\n\nexport function FloatingLabelInput() {\n const [isFocused, setIsFocused] = useState(false);\n const [value, setValue] = useState(\"\");\n\n const isFloating = isFocused || value.length > 0;\n\n return (\n
\n
\n setValue(e.target.value)}\n onFocus={() => setIsFocused(true)}\n onBlur={() => setIsFocused(false)}\n className=\"peer\"\n />\n \n Email address\n \n
\n
\n );\n}\n", "type": "registry:component", "target": "components/uitripled/floating-label-input-shadcnui.tsx" } ] }