{"id":23843639,"url":"https://github.com/ngduc/ui-form-field","last_synced_at":"2025-09-07T19:31:59.340Z","repository":{"id":57385161,"uuid":"170965325","full_name":"ngduc/ui-form-field","owner":"ngduc","description":"ui-form-field based on formik - a simple way to work with Forms in React.","archived":false,"fork":false,"pushed_at":"2019-05-08T06:24:59.000Z","size":3105,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-20T14:43:14.608Z","etag":null,"topics":["easy-to-use","form","formik","react"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ngduc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-16T05:10:54.000Z","updated_at":"2022-08-09T15:59:07.000Z","dependencies_parsed_at":"2022-09-05T07:30:11.692Z","dependency_job_id":null,"html_url":"https://github.com/ngduc/ui-form-field","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngduc%2Fui-form-field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngduc%2Fui-form-field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngduc%2Fui-form-field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngduc%2Fui-form-field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngduc","download_url":"https://codeload.github.com/ngduc/ui-form-field/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232250733,"owners_count":18494772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["easy-to-use","form","formik","react"],"created_at":"2025-01-02T19:50:33.110Z","updated_at":"2025-01-02T19:50:33.551Z","avatar_url":"https://github.com/ngduc.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ui-form-field\n\n[![Build Status](https://travis-ci.org/ngduc/ui-form-field.svg?branch=master)](https://travis-ci.org/ngduc/ui-form-field)\n\nA simple way to work with Forms in React.\n\n- Live Demo: [Codesandbox](https://codesandbox.io/s/304nq7w4z6?view=editor\u0026module=/src/examples/BasicExample.tsx)\n- Code examples: [Link](/src/examples)\n\n### 🌟 Features\n\n- Lightweight: 22 kb\n- Render different `form layouts`: Bootstrap 4, Semantic UI, Spectre and more. (including horizontal layout, inline fields)\n- Compatible with `formik`. This is built on top of formik and can be used together with it (for custom fields, etc.)\n- Support custom advanced field types: react-select, multi-select, tag input with auto-complete.\n- Simplify use cases like: Dynamic (conditional) field rendering, mixing with other components within the form, custom fields.\n- Works well on mobile screens.\n\n```JS\n$ npm install ui-form-field\n\nimport 'ui-form-field/lib/css/bootstrap4.css';\nimport { FormContainer, Form, Field, Button } from 'ui-form-field';\nimport { SingleSelect, MultiSelect } from 'ui-form-field/lib/custom'; // requires 'react-select'\n\n\u003cFormContainer onSubmit={this.onSubmit} render={props =\u003e (\n  \u003cForm use=\"bootstrap4\"\u003e\n    \u003cField label=\"Text\" name=\"text\" /\u003e\n    \u003cField name=\"password\" /\u003e\n    \u003cField textarea name=\"textarea\" /\u003e\n    \u003cField select options={animals} name=\"select\" /\u003e\n    \u003cField radios options={genders} name=\"radio\" /\u003e\n    \u003cField checkboxes options={roles} name=\"checkboxes\" /\u003e\n    \u003cField checkbox name=\"singleCheckbox\" /\u003e\n    \u003cField custom={SingleSelect} options={animals} name=\"singleSelect\" /\u003e\n    \u003cField custom={MultiSelect} options={animals} name=\"multiSelect\" /\u003e\n    \u003cField tagSelect name=\"tags\" options={tags} /\u003e\n    \u003cField number name=\"number\" /\u003e\n    \u003cField date name=\"date\" /\u003e\n    \u003cField time name=\"time\" /\u003e\n    \u003cField toggle inline name=\"toggle\" /\u003e\n    \u003cField file label=\"File Upload\" name=\"file1\" /\u003e\n    \u003cField file withPreview label=\"File Upload (with Preview)\" name=\"file2\" /\u003e\n    \u003cField range name=\"range\" /\u003e\n\n    \u003cButton type=\"submit\"/\u003e\n    \u003cButton\u003eCancel\u003c/Button\u003e\n  \u003c/Form\u003e\n)} /\u003e\n```\n\nRESULT: (Full form, validation (with yup) \u0026 error messages)\n\n[![Screenshot](screenshot-types.png)](https://codesandbox.io/s/304nq7w4z6?view=editor\u0026module=/src/examples/BasicExample.tsx)\n\n### 📖 Development\n```\n$ yarn dev        Start Dev mode\n$ yarn test       Run tests (jest \u0026 puppeteer in headless mode)\n$ yarn build      Build (output to ./lib)\n\n$ yarn postbuild  Copy sources or pre-built files to \"lib\" for publishing to npm. (Note: this will override built files)\n```\n\n### 📖 Documentation\n\n[Change Log](/CHANGELOG.md)\n\n#### TODO:\n- Support more form layouts: Material, etc.\n- More field types: Date Range, etc.\n- (File a PR to request any feature, field type, etc.)\n\n### 🙌 Thanks\n\nAll contributions are welcome!\n\n[formik](https://github.com/jaredpalmer/formik)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngduc%2Fui-form-field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngduc%2Fui-form-field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngduc%2Fui-form-field/lists"}