{"id":19174417,"url":"https://github.com/fetchte/semantic-ui-redux-form-fields","last_synced_at":"2026-04-30T12:32:52.798Z","repository":{"id":25699473,"uuid":"105235418","full_name":"fetchTe/semantic-ui-redux-form-fields","owner":"fetchTe","description":"Semantic UI Fields Integration with Redux From","archived":false,"fork":false,"pushed_at":"2022-12-07T09:49:41.000Z","size":2313,"stargazers_count":2,"open_issues_count":24,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-19T14:42:59.194Z","etag":null,"topics":["react","redux","redux-form","semantic-ui"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fetchTe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-29T05:58:25.000Z","updated_at":"2023-07-02T12:32:41.000Z","dependencies_parsed_at":"2023-01-14T03:30:24.749Z","dependency_job_id":null,"html_url":"https://github.com/fetchTe/semantic-ui-redux-form-fields","commit_stats":null,"previous_names":["fetchte/semantic-ui-redux-form-fields","artisin/semantic-ui-redux-form-fields"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetchTe%2Fsemantic-ui-redux-form-fields","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetchTe%2Fsemantic-ui-redux-form-fields/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetchTe%2Fsemantic-ui-redux-form-fields/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetchTe%2Fsemantic-ui-redux-form-fields/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fetchTe","download_url":"https://codeload.github.com/fetchTe/semantic-ui-redux-form-fields/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240254182,"owners_count":19772386,"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":["react","redux","redux-form","semantic-ui"],"created_at":"2024-11-09T10:17:45.011Z","updated_at":"2026-04-30T12:32:52.737Z","avatar_url":"https://github.com/fetchTe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Semantic UI React Redux Form Fields\n\n[![npm](https://img.shields.io/npm/l/semantic-ui-redux-form-fields.svg)](https://github.com/artisin/semantic-ui-redux-form-fields/blob/master/LICENSE.txt)\n[![npm](https://img.shields.io/npm/v/semantic-ui-redux-form-fields.svg)](https://www.npmjs.com/package/semantic-ui-redux-form-fields)\n[![wercker status](https://app.wercker.com/status/318ec4f5595dcc395d305e27825e20bd/s/master \"wercker status\")](https://app.wercker.com/project/byKey/318ec4f5595dcc395d305e27825e20bd)\n[![David](https://img.shields.io/david/artisin/semantic-ui-redux-form-fields.svg)](https://github.com/artisin/semantic-ui-redux-form-fields/blob/master/package.json)\n\nThis React component library is designed to help you easily integrate [Semantic UI React](https://react.semantic-ui.com/introduction) with [Redux Form](http://redux-form.com). The components come all pre-hooked-up so you don't have to worry about error reporting or the presentation logic since everything works right out of the box. Included is the big five form components `Checkbox` `Dropdown`, `Input`, `Radio`, and `TextArea` as well as `fieldEnhance` a higher order component that gives you the flexibility to extend and customize.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://media.giphy.com/media/xT9IgwCpeuRPvriyoE/giphy.gif\" width=\"450\"/\u003e\n\u003c/p\u003e\n\n\n## Install\n\n__Package Manager__\n\n   ```bash\n   # yarn\n   yarn add semantic-ui-redux-form-fields\n   # npm\n   npm install semantic-ui-redux-form-fields\n   ```\n\n__Github__\n\nIn the `dist/` directory contains a pre-build Node, Browser, and Browser minified version. However, I strongly recommend you use `yarn` or `npm`.\n\n\n\n## Prerequisites\n\n1. [Install and Config Redux](http://redux.js.org/)\n2. [Install and Config Redux Form](redux-form.com/7.0.4/docs/gettingstarted.md/)\n3. [Install and Config React Semantic UI](https://react.semantic-ui.com/usage)\n    + The assumption is you are using Semantic UI. And while you can \"technically\" use these components as standalones it would not make much sense. Furthermore, the Semantic UI css styles are not included in this package to allow for easier style customizations with Semantic themes and such.\n\n## Props\n\n+ All the default Semantic UI props for each component can be passed just like you would expect.\n+ `currentValue` → Is the `value` for all components. It's critically important that you use `currentValue` and not `value` otherwise the component will not work.\n+ `topLabel` → A Semantic UI `label` that's positioned above the field (top-right).\n+ Events → In all likelihood you'll need to implement custom events, and while you can use a non-append prop like `onChange` you won't have access to the redux-form `input` methods. However, by using these `{*}Custom` appended props `input` is passed as the first argument.\n    * `onBlurCustom(input, event, newValue, previousValue)`\n    * `onChangeCustom(input, event, newValue, previousValue)`\n    * `onDragStartCustom(input, event)`\n    * `onDropCustom(input, event, newValue, previousValue)`\n    * `onFocusCustom(input, event)`\n\n## Imports\n\n```js\nimport {\n  Checkbox,\n  Dropdown,\n  fieldEnhance,\n  Input,\n  Radio,\n  TextArea,\n} from 'semantic-ui-redux-form-fields';\n```\n\n## Field HOC\n\nAll the fields are created through the `fieldEnhance` higher order component which mentioned above gives you the ability to extend and customize. t handles the `Form.Field` presentational logic which includes error reporting and a top `label`. For example, it allows you to easily hook-up and use [React TimePicker](http://react-component.github.io/time-picker/). Check out `__tests__/fieldEnhance.HOC.spec.js` for an example how to use `fieldEnhance` with [React TimePicker](http://react-component.github.io/time-picker/).\n\n\n## Field Examples\n\nHere's a few examples, and need be there's more examples in `__tests__`. Also check out the `__tests__/fieldEnhance.HOC.spec.js` \n\n### Checkbox\n\n```js\nimport React from 'react';\nimport { Field, reduxForm } from 'redux-form';\nimport { Checkbox } from 'semantic-ui-redux-form-fields';\n\nconst SemanticFormCheckbox = (props) =\u003e {\n  const { currentValue, handleSubmit, pristine, submitting } = props;\n  return (\n    \u003cform onSubmit={handleSubmit}\u003e\n      \u003cField\n        component={Checkbox}\n        currentValue={currentValue}\n        name='my-Checkbox'\n        placeholder='My Checkbox'\n        required={true}\n        topLabel='My Checkbox'\n      /\u003e\n\n      \u003cdiv\u003e\n        \u003cbutton type='submit' disabled={pristine || submitting}\u003e\n          Submit\n        \u003c/button\u003e\n      \u003c/div\u003e\n    \u003c/form\u003e\n  );\n};\n\nexport default reduxForm({\n  // a unique identifier for this form\n  form: 'Semantic_Checkbox_Form'\n})(SemanticFormCheckbox);\n```\n\n### Input\n\n```js\nimport React from 'react';\nimport { Field, reduxForm } from 'redux-form';\nimport { Input } from 'semantic-ui-redux-form-fields';\n\n\nconst SemanticFormInput = (props) =\u003e {\n  const { currentValue, handleSubmit, pristine, submitting } = props;\n  return (\n    \u003cform onSubmit={handleSubmit}\u003e\n      \u003cField\n        component={Input}\n        currentValue={currentValue}\n        name='my-Input'\n        placeholder='My Input'\n        required={true}\n        topLabel='My Input'\n      /\u003e\n\n      \u003cdiv\u003e\n        \u003cbutton type='submit' disabled={pristine || submitting}\u003e\n          Submit\n        \u003c/button\u003e\n      \u003c/div\u003e\n    \u003c/form\u003e\n  );\n};\n\nexport default reduxForm({\n  // a unique identifier for this form\n  form: 'Semantic_Input_Form'\n})(SemanticFormInput);\n```\n\n### Dropdown\n\n```js\nimport React from 'react';\nimport { Field, reduxForm } from 'redux-form';\nimport { Dropdown } from 'semantic-ui-redux-form-fields';\n\nconst checkboxOptions = [{\n  value: 'one', text: 'one', key: 'one',\n}, {\n  value: 'two', text: 'two', key: 'two',\n}, {\n  value: 'three', text: 'three', key: 'three',\n}];\n\nconst SemanticFormDropdown = (props) =\u003e {\n  const { currentValue, handleSubmit, pristine, submitting } = props;\n  return (\n    \u003cform onSubmit={handleSubmit}\u003e\n      \u003cField\n        component={Dropdown}\n        currentValue={currentValue}\n        name='my-Dropdown'\n        options={checkboxOptions}\n        placeholder='My Dropdown'\n        required={true}\n        topLabel='My Dropdown'\n      /\u003e\n\n      \u003cdiv\u003e\n        \u003cbutton type='submit' disabled={pristine || submitting}\u003e\n          Submit\n        \u003c/button\u003e\n      \u003c/div\u003e\n    \u003c/form\u003e\n  );\n};\n\nexport default reduxForm({\n  // a unique identifier for this form\n  form: 'Semantic_Dropdown_Form'\n})(SemanticFormDropdown);\n\n```\n\n\n---\n\nBest, te","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetchte%2Fsemantic-ui-redux-form-fields","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffetchte%2Fsemantic-ui-redux-form-fields","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetchte%2Fsemantic-ui-redux-form-fields/lists"}