All Projects → redux-autoform → Redux Autoform

redux-autoform / Redux Autoform

Licence: mit
Create Redux-Forms dynamically out of metadata

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Redux Autoform

Capivarajs
✌️ Um novo jeito de criar componentes híbridos.
Stars: ✭ 97 (-14.16%)
Mutual labels:  components
Data Components
♻️ Tiny component structure for web applications
Stars: ✭ 100 (-11.5%)
Mutual labels:  components
Atlas.js
A component-based Node.js library to reduce boilerplate and provide sane project structure 🍻
Stars: ✭ 108 (-4.42%)
Mutual labels:  components
Leaf Ui
🍃 Leaf-UI: A react component library built using styled-components
Stars: ✭ 98 (-13.27%)
Mutual labels:  components
Devextreme React
React UI and data visualization components
Stars: ✭ 100 (-11.5%)
Mutual labels:  components
Pd Select
vue components ,like ios 3D picker style,vue 3d 选择器组件,3D滚轮
Stars: ✭ 101 (-10.62%)
Mutual labels:  components
Redocx
📄 Create word documents with React
Stars: ✭ 1,331 (+1077.88%)
Mutual labels:  components
React Forms
React library for rendering forms.
Stars: ✭ 111 (-1.77%)
Mutual labels:  components
Uniforms
A React library for building forms from any schema.
Stars: ✭ 1,368 (+1110.62%)
Mutual labels:  components
Freeesvclcomponents
Free ErrorSoft components for delphi (VCL) & EsVclCore lib
Stars: ✭ 106 (-6.19%)
Mutual labels:  components
Magix Gallery
magix gallery
Stars: ✭ 98 (-13.27%)
Mutual labels:  components
Antv
Ant Design of Vue.js 2.0
Stars: ✭ 99 (-12.39%)
Mutual labels:  components
Gu
A web ui library for Go. [DEPRECATED]
Stars: ✭ 102 (-9.73%)
Mutual labels:  components
Awesome React Generator
No more clicking around to create files in your react project! Awesome React Generator is Command Line Tool that let's you scaffold your components without leaving your terminal.
Stars: ✭ 98 (-13.27%)
Mutual labels:  components
React Collection Helpers
A suite of composable utility components to manipulate collections.
Stars: ✭ 109 (-3.54%)
Mutual labels:  components
Calcite Components
Web Components for the Calcite Design System. Built with Stencil JS. Currently in Beta!
Stars: ✭ 96 (-15.04%)
Mutual labels:  components
Re Jok
A React UI Component library built with styled-components
Stars: ✭ 102 (-9.73%)
Mutual labels:  components
Candela
Visualization components for the web
Stars: ✭ 112 (-0.88%)
Mutual labels:  components
React Multi Select
A Multi Select component built with and for React
Stars: ✭ 111 (-1.77%)
Mutual labels:  components
Server Components Mdx Demo
React server components + MDX
Stars: ✭ 102 (-9.73%)
Mutual labels:  components

Logo

Build Status npm version codecov Coverage Status

NPM NPM

Beta version disclaimer

redux-autoform is under active development. APIs will change and things may still not work as expected. If you find any issue, please report it. We'll do my best to fix it.

Introduction

Redux-Autoform is an UI agnostic library for dynamically generating redux-form out of metadata.

Supported UI frameworks

Demos

Docs

Docs are available here.

Installing

npm install redux-autoform

Using

AutoForm (source)

The main React component.

import { AutoForm } from 'redux-autoform';

The AutoForm props are listed here.

The 2 most important props AutoForm should receive is the schema and the componentFactory.

The schema represents the application domain. All entities, layouts and their metadata is contained in the schema. More information here.

The ComponentFactory is responsible for determining which React component to use for a given field metadata. redux-autoform doesn't have any built-in factory, for that you can use either Bootstrap (beta state) or Material-UI (beta state).

Assuming Bootstrap, you can get the factories like this:

import { EditComponentFactory, DetailsComponentFactory } from 'redux-autoform-bootstrap-ui';

Either one of these factories now should be passed as prop Autoform as described in the docs.

Localization

AutoForm doesn't directly depend on localization, but both the Bootstrap and Material-UI factories do. So, if you're using these, this is what you should do:

  • Install numbro. This is the library used for number localization.
  • Install moment. This is the library used for datetime localization.
// import moment and numbro
import moment from 'moment';
import numbro from 'numbro';
 // import the localizers
 import { momentLocalizer, numbroLocalizer } from 'redux-autoform';
// if you are using react-widgets, which is used by default on the standard factories, you need to import it's localizer too:
import reactWidgetsMomentLocalizer from 'react-widgets/lib/localizers/moment';
// set up the localizers
momentLocalizer(moment);
numbroLocalizer(numbro);

reactWidgetsMomentLocalizer(moment); // THIS IS ONLY IMPORTANT WHEN USING BOOTSTRAP

Styles

The styling will depend on the UI you're using:

Building and running the demo locally

Redux-Autoform provides a really minimalist demo. In order to run the demo, run:

npm run start

Now the demo should be available here: http://localhost:4000/.

Running the tests

npm run test // will run the Karma tests PhantomJS
// OR
npm run test-chrome // will run the Karma tests on Chrome

Contributing

Pull-requests are really really welcome. If you don't know what to contribute with, please check the issues.

We'll be more than glad to invite frequent contributors to join the organization. If you need help understanding the project, please post an issue and I'll do my best to reply and make sure you understand everything you need.

In order to make a pull request:

  1. Fork it.
  2. Create your feature-branch git checkout -b your-new-feature-branch
  3. Commit your change git commit -am 'Add new feature'
  4. Push to the branch git push origin your-new-feature-branch
  5. Create new Pull Request with master branch

License

redux-autoform is MIT licensed.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].