{"id":18062463,"url":"https://github.com/mxdi9i7/formio","last_synced_at":"2025-07-31T05:06:23.692Z","repository":{"id":57240579,"uuid":"156251494","full_name":"mxdi9i7/formio","owner":"mxdi9i7","description":"Simple React library that accepts and manages form inputs and values.","archived":false,"fork":false,"pushed_at":"2018-11-29T17:10:00.000Z","size":677,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T11:11:26.085Z","etag":null,"topics":["forms","input","input-validation","react","reactjs","reactjs-components"],"latest_commit_sha":null,"homepage":"https://mxdi9i7.github.io/formio","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/mxdi9i7.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":"2018-11-05T16:52:42.000Z","updated_at":"2023-12-26T23:48:39.000Z","dependencies_parsed_at":"2022-08-29T22:21:35.700Z","dependency_job_id":null,"html_url":"https://github.com/mxdi9i7/formio","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/mxdi9i7%2Fformio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxdi9i7%2Fformio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxdi9i7%2Fformio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxdi9i7%2Fformio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mxdi9i7","download_url":"https://codeload.github.com/mxdi9i7/formio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248298310,"owners_count":21080320,"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":["forms","input","input-validation","react","reactjs","reactjs-components"],"created_at":"2024-10-31T05:07:03.650Z","updated_at":"2025-04-11T15:04:54.833Z","avatar_url":"https://github.com/mxdi9i7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# formio-inputs\n\n\u003e 3kb compressed form component that takes care of everything for you.\n\n\u003e formio stands for form input and output.\n\n[![NPM](https://img.shields.io/npm/v/formio.svg)](https://www.npmjs.com/package/formio) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nyarn add formio-inputs\n```\n\n```bash\nnpm install --save formio-inputs\n```\n\n## Basic Usage\n\n```jsx\nimport React, { Component } from 'react'\n\nimport Formio from 'formio-inputs'\n\nconst inputs = [\n {\n   key: 'email', \n   type: 'email',\n   label: 'Email:',\n   placeholder: 'Enter your email here'\n },\n {\n   key: 'password',\n   type: 'password',\n   label: 'Password',\n   placeholder: 'Enter your password here'\n }\n]\n\nclass Example extends Component {\n  render () {\n    return (\n      \u003cFormio \n        inputs={inputs}\n        change={this.handleFormChange}\n        submit={this.handleFormSubmit}\n        theme={'bootstrap'}\n      /\u003e\n    )\n  }\n}\n```\n\n## Props\nProps with a asterisk (*) is required\n\n| Props  | Type | Description |\n| :------------- | :------------- | :---------- |\n| `input`* | array | a list of input objects to generate |\n| `change` | function | Callback function triggers upon input change and returns the entire form state |\n| `submit` | function | Callback function triggers upon clicking on the submit button |\n| `theme` | string | Form theme `bootstrap` (default), `material`, `classic` |\n| `buttonStyle` | object | Style object that customizes the submit button design\n\n## Todo\n1. Support for select options and checkbox inputs\n2. Support for file input\n3. Support for multi file input\n4. Test coverage\n\n## Issues\nFor all bug related issue please refer to the issues page and submit an issue\n\n## Contributions\nIf you would like a feature implemented consider submitting a PR yourself! All contributions welcomed.\n\n## License\n\nMIT © [mxdi9i7](https://github.com/mxdi9i7)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxdi9i7%2Fformio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmxdi9i7%2Fformio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxdi9i7%2Fformio/lists"}