{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "input", "type": "registry:ui", "description": "Text input with icon support and error states", "dependencies": [], "registryDependencies": [], "files": [ { "path": "registry/new-york/input/input.tsx", "content": "import * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nexport interface InputProps extends React.InputHTMLAttributes {\n leftIcon?: React.ReactNode\n rightIcon?: React.ReactNode\n error?: boolean\n errorMessage?: string\n}\n\nconst Input = React.forwardRef(\n ({ className, type, leftIcon, rightIcon, error, errorMessage, ...props }, ref) => {\n return (\n
\n {leftIcon && (\n
\n {leftIcon}\n
\n )}\n \n {rightIcon && (\n
\n {rightIcon}\n
\n )}\n {error && errorMessage && (\n

{errorMessage}

\n )}\n
\n )\n }\n)\nInput.displayName = \"Input\"\n\nexport { Input }\n", "type": "registry:ui" } ] }