{"id":22382423,"url":"https://github.com/jcoreio/redux-form-material-ui","last_synced_at":"2025-08-02T19:08:37.266Z","repository":{"id":38447871,"uuid":"210688728","full_name":"jcoreio/redux-form-material-ui","owner":"jcoreio","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-29T21:21:24.000Z","size":1559,"stargazers_count":0,"open_issues_count":9,"forks_count":1,"subscribers_count":2,"default_branch":"jcoreio","last_synced_at":"2025-07-29T22:14:23.038Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jcoreio.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-09-24T20:08:39.000Z","updated_at":"2025-07-29T21:15:57.000Z","dependencies_parsed_at":"2024-03-08T23:15:11.688Z","dependency_job_id":null,"html_url":"https://github.com/jcoreio/redux-form-material-ui","commit_stats":{"total_commits":96,"total_committers":28,"mean_commits":"3.4285714285714284","dds":0.5833333333333333,"last_synced_commit":"9e395988f0548507b161d54247d3dbc16e0d22c8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jcoreio/redux-form-material-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fredux-form-material-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fredux-form-material-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fredux-form-material-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fredux-form-material-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcoreio","download_url":"https://codeload.github.com/jcoreio/redux-form-material-ui/tar.gz/refs/heads/jcoreio","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fredux-form-material-ui/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268439389,"owners_count":24250671,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"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":"2024-12-05T00:12:58.070Z","updated_at":"2025-08-02T19:08:37.240Z","avatar_url":"https://github.com/jcoreio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\n# redux-form-material-ui\n---\n\n[![NPM Version](https://img.shields.io/npm/v/redux-form-material-ui.svg?style=flat-square)](https://www.npmjs.com/package/redux-form-material-ui)\n[![NPM Downloads](https://img.shields.io/npm/dm/redux-form-material-ui.svg?style=flat-square)](https://www.npmjs.com/package/redux-form-material-ui)\n[![Build Status](https://img.shields.io/travis/erikras/redux-form-material-ui/master.svg?style=flat-square)](https://travis-ci.org/erikras/redux-form-material-ui)\n[![codecov.io](https://codecov.io/github/erikras/redux-form-material-ui/coverage.svg?branch=master)](https://codecov.io/github/erikras/redux-form-material-ui?branch=master)\n[![CDNJS version](https://img.shields.io/cdnjs/v/redux-form-material-ui.svg)](https://cdnjs.com/libraries/redux-form-material-ui)\n\n[`redux-form-material-ui`](https://github.com/erikras/redux-form-material-ui) is a set of\nwrappers to facilitate the use of\n[`material-uibeta`](https://github.com/callemall/material-ui) components with\n[`redux-form`](https://github.com/erikras/redux-form).\n\nLatest version is supported by only for material-ui beta.\n\n---\n\n## [Live Demo](http://erikras.github.io/redux-form-material-ui/) :eyes:\n\n## Installation\n\nUsing [npm](https://www.npmjs.org/):\n\n```bash\n  $ npm install --save redux-form-material-ui@next\n```\n\nUsing [yarn](https://yarnpkg.com):\n\n```bash\n  $ yarn add redux-form-material-ui@next\n```\n\n## Available Components\n\n- [AutoComplete](http://www.material-ui.com/#/components/auto-complete)\n- [Checkbox](http://www.material-ui.com/#/components/checkbox)\n- ~[TimePicker](http://www.material-ui.com/#/components/time-picker)~ [Material-4787](https://github.com/callemall/material-ui/issues/4787)\n- ~[DatePicker](http://www.material-ui.com/#/components/date-picker)~ [Material-4787](https://github.com/callemall/material-ui/issues/4787)\n- [RadioButtonGroup](http://www.material-ui.com/#/components/radio-button)\n- [Select](http://www.material-ui.com/#/components/Select)\n- ~[Slider](http://www.material-ui.com/#/components/slider)~ [Material-4793](https://github.com/callemall/material-ui/issues/4793)\n- [TextField](http://www.material-ui.com/#/components/text-field)\n- [Switch](https://material.io/guidelines/components/lists-controls.html#lists-controls-types-of-list-controls)\n\n## Usage\n\nRather than import your component class from `material-ui`, import it from `redux-form-material-ui`\nand then pass the component class directly to the `component` prop of `Field`.\n\n```js\nimport { reduxForm, Field } from 'redux-form'\nimport MenuItem from '@material-ui/core/MenuItem'\nimport Radio from '@material-ui/core/RadioButton'\nimport {\n  Checkbox,\n  RadioGroup,\n  Select,\n  TextField,\n  Switch,\n  FormControlLabel,\n} from 'redux-form-material-ui'\n\nclass MyForm extends Component {\n  render() {\n    return (\n      \u003cform\u003e\n        \u003cField name=\"username\" component={TextField} placeholder=\"Street\" /\u003e\n\n        \u003cField name=\"plan\" component={Select} placeholder=\"Select a plan\"\u003e\n          \u003cMenuItem value=\"monthly\"\u003eMonthly\u003c/MenuItem\u003e\n          \u003cMenuItem value=\"yearly\"\u003eYearly\u003c/MenuItem\u003e\n          \u003cMenuItem value=\"lifetime\"\u003eLifetime\u003c/MenuItem\u003e\n        \u003c/Field\u003e\n\n        \u003cFormControlLabel\n          control={\u003cField name=\"agreeToTerms\" component={Checkbox} /\u003e}\n          label=\"Agree to terms?\"\n        /\u003e\n\n        \u003cFormControlLabel\n          control={\u003cField name=\"receiveEmails\" component={Switch} /\u003e}\n          label=\"Please spam me!\"\n        /\u003e\n\n        \u003cField name=\"bestFramework\" component={RadioGroup}\u003e\n          \u003cRadio value=\"react\" label=\"React\" /\u003e\n          \u003cRadio value=\"angular\" label=\"Angular\" /\u003e\n          \u003cRadio value=\"ember\" label=\"Ember\" /\u003e\n        \u003c/Field\u003e\n      \u003c/form\u003e\n    )\n  }\n}\n\n// Decorate with redux-form\nMyForm = reduxForm({\n  form: 'myForm',\n})(MyForm)\n\nexport default MyForm\n```\n\n## No Default Values\n\nBecause of the strict \"controlled component\" nature of `redux-form`,\nsome of the Material UI functionality related to defaulting of values has been disabled\ne.g. `defaultValue`, `defaultDate`, `defaultTime`, `defaultToggled`, `defaultChecked`, etc.\nIf you need a field to be initialized to a certain state, you should use the `initialValues`\nAPI of `redux-form`.\n\n## Instance API\n\n#### `getRenderedComponent()`\n\nReturns a reference to the Material UI component that has been rendered. This is useful for\ncalling instance methods on the Material UI components. For example, if you wanted to focus on\nthe `username` element when your form mounts, you could do:\n\n```js\ncomponentWillMount() {\n  this.refs.firstField      // the Field\n    .getRenderedComponent() // on Field, returns ReduxFormMaterialUITextField\n    .getRenderedComponent() // on ReduxFormMaterialUITextField, returns TextField\n    .focus()                // on TextField\n}\n```\n\nas long as you specified a `ref` and `withRef` on your `Field` component.\n\n```js\nrender() {\n  return (\n    \u003cform\u003e\n      ...\n      \u003cField name=\"username\" component={TextField} withRef ref=\"firstField\"/\u003e\n      ...\n    \u003c/form\u003e\n  )\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcoreio%2Fredux-form-material-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcoreio%2Fredux-form-material-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcoreio%2Fredux-form-material-ui/lists"}