{"id":27057670,"url":"https://github.com/guilhermeuptotask/react-typescript-form-validation","last_synced_at":"2026-08-10T02:01:45.809Z","repository":{"id":163034367,"uuid":"638479888","full_name":"guilhermeUpToTask/react-typescript-form-validation","owner":"guilhermeUpToTask","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-11T12:24:23.000Z","size":74,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T01:27:45.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guilhermeUpToTask.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-09T13:00:51.000Z","updated_at":"2023-05-18T16:00:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"996b30b0-7661-4be5-9506-7e2838f2bdb5","html_url":"https://github.com/guilhermeUpToTask/react-typescript-form-validation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/guilhermeUpToTask/react-typescript-form-validation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guilhermeUpToTask%2Freact-typescript-form-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guilhermeUpToTask%2Freact-typescript-form-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guilhermeUpToTask%2Freact-typescript-form-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guilhermeUpToTask%2Freact-typescript-form-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guilhermeUpToTask","download_url":"https://codeload.github.com/guilhermeUpToTask/react-typescript-form-validation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guilhermeUpToTask%2Freact-typescript-form-validation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36474667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-06T04:43:03.162Z","status":"online","status_checked_at":"2026-08-10T02:00:05.122Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-05T11:28:40.911Z","updated_at":"2026-08-10T02:01:45.774Z","avatar_url":"https://github.com/guilhermeUpToTask.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React TypeScript Form Validation System\nThis project is a validation system for forms written in React TypeScript. It covers almost all input types, including text, email, checkbox, time, date, number, password, file, and search. Additionally, it includes a radio group component. However, select and textarea inputs are still not supported.\n\n## Installation\nTo use this project, you'll need to have Node.js installed. Once you have Node.js installed, you can run the following command to install the project's dependencies:\n\n```\n npm install up-to-task-validation-form\n```\n\n## Usage\n\nTo use this project, you'll need to import the components. Here's an example of how to use the Form component with some Input components and a RadioGroup component:\n\n\n```\n    import { Input, RadioGroup, Form} from 'up-to-task-validation-form';\n\n    \u003cForm onSubmit={onFormSubmit}\u003e\n      \u003cInput name='name' id='name' label='Type Your Name' required minLength={4} maxLength={10} /\u003e\n        \u003cInput type='email' \n          name='email' \n          validationMessage='Invalid Email Ex:name@email.com'\n          pattern=\"^[a-zA-Z0-9!#$%\u0026amp;'*+\\/=?^_`\\{\\|\\}~.\\-]+@[a-zA-Z0-9\\-]+(\\.[a-zA-Z0-9\\-]+)*$\" \n          autoComplete='email' \n          required /\u003e\n        \u003cInput type='checkbox' value='check' required /\u003e /\u003e\n        \u003cRadioGroup name='gender' id='gender' label='Choose your Gender'  required\u003e\n          \u003cinput type=\"radio\" value=\"male\" /\u003e Male\n          \u003cinput type=\"radio\" value=\"female\" /\u003eFemale\n        \u003c/RadioGroup\u003e\n    \u003c/Form\u003e\n```\nFor proper functionality, please note that the Input and RadioGroup components should be wrapped inside the Form component.\n\nTo handle form submissions, you can define a function that will be called when the form is submitted:\n```\n    function onFormSubmit (e:React.FormEvent\u003cHTMLFormElement\u003e) {\n        const formData = new FormData(e.currentTarget);\n        console.log(Object.fromEntries(formData));\n    }\n```\n\nNote that this function will only be called if all input validations have passed.\n\n## Components\nThis project includes the following components:\n\n* Form: a wrapper component for forms.\n* Input: a component for text inputs, email inputs, checkboxes, dates, times, numbers, passwords, and files.\n* RadioGroup: a component for radio group inputs.\n\n## Contributions\nContributions are welcome! To contribute to this project, fork the repository and create a pull request.\n\n## License\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguilhermeuptotask%2Freact-typescript-form-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguilhermeuptotask%2Freact-typescript-form-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguilhermeuptotask%2Freact-typescript-form-validation/lists"}