{"id":21714074,"url":"https://github.com/rstgroup/react-components-form","last_synced_at":"2025-06-17T02:34:26.662Z","repository":{"id":45413184,"uuid":"82964966","full_name":"rstgroup/react-components-form","owner":"rstgroup","description":"React components form give you posibility to create forms with schema validation using \"form-schema-validation\".","archived":false,"fork":false,"pushed_at":"2024-10-24T05:37:39.000Z","size":1754,"stargazers_count":30,"open_issues_count":6,"forks_count":15,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-24T09:28:24.305Z","etag":null,"topics":["javascript","react"],"latest_commit_sha":null,"homepage":"https://rstgroup.gitbooks.io/react-components-form/","language":"JavaScript","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/rstgroup.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-02-23T19:46:22.000Z","updated_at":"2024-10-23T17:48:24.000Z","dependencies_parsed_at":"2023-01-20T16:15:21.337Z","dependency_job_id":null,"html_url":"https://github.com/rstgroup/react-components-form","commit_stats":null,"previous_names":["mprzodala/react-components-form"],"tags_count":66,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstgroup%2Freact-components-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstgroup%2Freact-components-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstgroup%2Freact-components-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstgroup%2Freact-components-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rstgroup","download_url":"https://codeload.github.com/rstgroup/react-components-form/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226422440,"owners_count":17622594,"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":["javascript","react"],"created_at":"2024-11-26T00:30:41.322Z","updated_at":"2025-06-17T02:34:26.654Z","avatar_url":"https://github.com/rstgroup.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REACT COMPONENTS FORM v3\n[![Build Status](https://travis-ci.org/rstgroup/react-components-form.svg?branch=master)](https://travis-ci.org/rstgroup/react-components-form)\n[![Coverage Status](https://coveralls.io/repos/github/rstgroup/react-components-form/badge.svg?branch=master)](https://coveralls.io/github/rstgroup/react-components-form?branch=master)\n[![npm](https://img.shields.io/npm/l/react-components-form.svg)](https://npmjs.org/package/react-components-form)\n[![npm](https://img.shields.io/npm/v/react-components-form.svg)](https://npmjs.org/package/react-components-form)\n\n1. [Features](#features)\n1. [Documentation](#documentation)\n1. [Installation](#installation)\n1. [How to use](#how-to-use)\n1. [Contribute](#contribute)\n1. [License](#license)\n\n### Features\n\n- sync validation\n- async validation (Promise)\n- [schema validation](https://rstgroup.gitbooks.io/react-components-form/content/form/schema.html) ([form-schema-validation](https://github.com/rstgroup/form-schema-validation))\n- [custom validation methods](https://rstgroup.gitbooks.io/react-components-form/content/form/customvalidation.html)\n- fields components\n    - [TextField](https://rstgroup.gitbooks.io/react-components-form/content/fields/textfield.html)\n    - [TextareaField](https://rstgroup.gitbooks.io/react-components-form/content/fields/textareafield.html)\n    - [SelectField](https://rstgroup.gitbooks.io/react-components-form/content/fields/selectfield.html)\n    - [NumberField](https://rstgroup.gitbooks.io/react-components-form/content/fields/numberfield.html)\n    - RadioField\n    - [CheckboxField](https://rstgroup.gitbooks.io/react-components-form/content/fields/checkboxfield.html)\n    - [DateField](https://rstgroup.gitbooks.io/react-components-form/content/fields/datefield.html)\n    - [AutocompleteField](https://rstgroup.gitbooks.io/react-components-form/content/fields/autocompletefield.html)\n    - [ObjectField](https://rstgroup.gitbooks.io/react-components-form/content/fields/objectfield.html)\n        - wrap fields to object\n    - [ListField](https://rstgroup.gitbooks.io/react-components-form/content/fields/listfield.html)\n        - wrap field to array\n        - clone field component (array of fields)\n    - [SubmitField](https://rstgroup.gitbooks.io/react-components-form/content/fields/submitfield.html) (button to submit form)\n- [custom fields](https://rstgroup.gitbooks.io/react-components-form/content/fields/create-field.html) (FieldConnect)\n- field can have object structure (ObjectField)\n- field can have array structure (ListField)\n- [FormEventsEmitter](https://rstgroup.gitbooks.io/react-components-form/content/advanced/formeventsemitter.html)\n    - listen on form events\n    - emit events on form\n    - register custom events\n- form elements (you can create component with fields and use it many times)\n- FieldsRestyle (you can restyle all components)\n- fields with Bootstrap styles\n\n### Documentation\n\n- [version ^3.0.0](https://rstgroup.gitbooks.io/react-components-form/content/)\n\n- [version ^2.0.0](https://github.com/rstgroup/react-components-form/blob/master/documentation/README-v2.md)\n\n### Installation\n\n```bash\n$ npm install react --save\n```\n\n```bash\n$ npm install react-components-form --save\n```\n\nIf you want schema validation please install [form-schema-validation](https://github.com/rstgroup/form-schema-validation)\n\n```bash\n$ npm install form-schema-validation --save\n```\n\n### How to use\n\n```js\nimport React from 'react';\nimport { Form, TextField, SubmitField } from 'react-components-form';\nimport Schema from 'form-schema-validation';\n\nconst loginSchema = new Schema({\n  login: {\n    type: String,\n    required: true\n  },\n  password: {\n    type: String,\n    required: true\n  }\n});\n\nconst LoginForm = () =\u003e (\n  \u003cForm\n    schema={loginSchema}\n    onSubmit={model =\u003e console.log(model)}\n    onError={(errors, data) =\u003e console.log('error', errors, data)}\n  \u003e\n    \u003cTextField name=\"login\" label=\"Login\" type=\"text\" /\u003e\n    \u003cTextField name=\"password\" label=\"Password\" type=\"text\" /\u003e\n    \u003cSubmitField value=\"Submit\" /\u003e\n  \u003c/Form\u003e\n);\n\nexport default LoginForm;\n```\n\n[\u003cimg src=\"https://codesandbox.io/static/img/play-codesandbox.svg\" /\u003e](https://codesandbox.io/s/k54rwmlmy5?module=%2FForm.js)\n\n### Contribute\n\n- use eslint rules\n- write clean code\n- unit tests (min 85% of your code should be tested)\n- [code of conduct](https://github.com/rstgroup/react-components-form/blob/master/documentation/code_of_conduct.md)\n\n### License\n\nreact-component-form package are [MIT licensed](https://github.com/rstgroup/react-components-form/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstgroup%2Freact-components-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frstgroup%2Freact-components-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstgroup%2Freact-components-form/lists"}