{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "text-input-field", "type": "registry:component", "title": "Text Input Field", "description": "Field component for single-line text inputs with validation and error handling", "dependencies": [ "react", "@registry/react" ], "registryDependencies": [ "https://components.thgaltitude.com/r/react/field-wrapper", "https://components.thgaltitude.com/r/react/text-input" ], "files": [ { "path": "registry/react/component/fields/text-input-field.tsx", "content": "import React from \"react\";\nimport type { InputHTMLAttributes } from \"react\";\nimport TextInput from \"@registry/react/ui/text-input\";\nimport InputWrapper from \"@registry/react/component/field-wrapper\";\nimport type { FieldProps } from \"@registry/react/component/field-wrapper\";\n\ntype TextInputFieldProps = FieldProps &\n Omit<\n InputHTMLAttributes,\n \"id\" | \"name\" | \"placeholder\" | \"disabled\" | \"required\" | \"aria-invalid\"\n >;\n\nconst TextInputField: React.FC = ({\n id,\n name,\n label,\n helperText,\n errorMessage,\n placeholder,\n required = false,\n \"aria-invalid\": ariaInvalid = false,\n disabled = false,\n maxlength,\n ...restProps\n}) => {\n return (\n
\n \n \n \n
\n );\n};\n\nexport default TextInputField;\n", "type": "registry:component", "target": "react/component/fields/text-input-field.tsx" } ] }