{"id":23264039,"url":"https://github.com/nimahkh/formact","last_synced_at":"2026-03-07T02:32:31.245Z","repository":{"id":39530310,"uuid":"188096662","full_name":"nimahkh/formact","owner":"nimahkh","description":"Reactjs Form generator ","archived":false,"fork":false,"pushed_at":"2023-01-03T22:48:40.000Z","size":5261,"stargazers_count":4,"open_issues_count":22,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-02T06:33:43.271Z","etag":null,"topics":["react","react-form-addons","react-form-component","react-form-generator","react-form-validation","react-form-validator","react-forms","reactjs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/nimahkh.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}},"created_at":"2019-05-22T18:55:31.000Z","updated_at":"2023-03-08T15:39:47.000Z","dependencies_parsed_at":"2023-02-01T12:01:12.421Z","dependency_job_id":null,"html_url":"https://github.com/nimahkh/formact","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nimahkh/formact","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimahkh%2Fformact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimahkh%2Fformact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimahkh%2Fformact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimahkh%2Fformact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nimahkh","download_url":"https://codeload.github.com/nimahkh/formact/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimahkh%2Fformact/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30206067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"online","status_checked_at":"2026-03-07T02:00:06.765Z","response_time":53,"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":["react","react-form-addons","react-form-component","react-form-generator","react-form-validation","react-form-validator","react-forms","reactjs"],"created_at":"2024-12-19T14:29:51.433Z","updated_at":"2026-03-07T02:32:31.193Z","avatar_url":"https://github.com/nimahkh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### Formact is a react form generator component \n\n#### install \n\n`\nnpm i @nimahkh/formact\n`\n\n#### How to use \n\n```\n//App.js\nimport React, {Fragment, useState} from 'react';\nimport ReactDOM from 'react-dom';\nimport Field from '../../src';\nimport FieldStyle from \"./FieldStyle\";\n\nconst App = (props) =\u003e {\n\n    const [value, setValue] = useState(\"\");\n\n    function handleChange(e) {\n        const inputValue = e.target.value;\n        setValue(inputValue)\n    }\n\n    return (\n        \u003cFragment\u003e\n            \u003cFieldStyle value={value} onChangeProp={(e)=\u003ehandleChange(e)}/\u003e\n            \u003cField\n                element={\"input\"}\n                type=\"password\"\n                label={\"password\"}\n                name=\"password\"\n                value={value}\n                placeholder=\"Password\"\n                variant={\"bootstrap\"}\n            /\u003e\n            \u003cField\n                element={\"input\"}\n                name=\"name\"\n                label={\"user name\"}\n                value={value}\n                type=\"text\"\n                placeholder=\"Name\"\n            /\u003e\n        \u003c/Fragment\u003e\n    )\n};\n\nReactDOM.render(\u003cApp/\u003e, document.getElementById('root'));\n\n```\n\n```\n//FieldStyle.js a simple jss override styling example\nimport Field from \"../../src/Components/Field\";\nimport React from \"react\";\nimport withStyles from \"react-jss\"\n\nconst styles={\n    container:{\n        backgroundColor: \"#ccc\"\n    },\n    inputStyle: {\n        minWidth: '200px',\n        minHeight:'40px',\n        appearance: 'none !important',\n        border: \"1px solid blue\",\n        borderRadius: 5,\n        boxSizing: \"border-box\",\n        fontSize: \"0.9rem\",\n        padding: \"1rem 0.5rem\",\n        marginBottom: 10,\n        '\u0026:required': {\n            border: '1px solid #333'\n        },\n        '\u0026:hover': {\n            border: '1px solid #333'\n        }\n    }\n}\n\nfunction FieldStyle (props){\n\n    const {classes}=props;\n\n    return(\n        \u003cField\n            inputClass={{\n                container:classes.container,\n                input : classes.inputStyle\n            }}\n            element={\"input\"}\n            type=\"email\"\n            label={\"email\"}\n            placeholder=\"Enter email\"\n            onChange={props.onChangeProp}\n            name=\"email\"\n            value={props.value}\n            required={true}\n            variant={\"material2\"}\n        /\u003e\n    )\n}\n\nexport default withStyles(styles)(FieldStyle)\n\n```\n\n#### features\n\n- jss\n- material and none-material styles\n- full props control\n- full class override \n\n#### for now\n\n- supporting text and text area\n- overriding label and container classes\n- two styles group ( material , bootstrap)\n\n#### Road map\n\n- support RTL\n- validations \n- checkboxes\n- radio boxes\n- buttons\n- drop downs\n- fieldSets\n- step forms\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimahkh%2Fformact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnimahkh%2Fformact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimahkh%2Fformact/lists"}