redux-form-auto-bootstrap4

Automatic form generation using bootstrap 4


Keywords
automatic, form, generation, validation, bootstrap
License
MIT
Install
npm install redux-form-auto-bootstrap4@1.0.4

Documentation

redux-form-auto-bootstrap4

redux-form-auto-bootstrap4 allows your React application to automatically generate forms and validation code using ReduxForm for state management and Bootstrap 4 for component rendering.

It extends redux-form-auto and the API is identical (documentation).

Play with the demo

Demo

Installation

$ npm install redux-form-auto-bootstrap4 --save

Usage

Just like redux-form-auto except you import this one. You are also in charge of importing bootstrap.

    import { Schema } from 'redux-form-auto-bootstrap4'

    const client = new Schema('client', {
      name: {
        type: 'string',
        required: true,
        max: 32
      },
      age: {
        type: 'number'
      }
    })

    const MyForm = ({ onSubmit }) =>
      <Autoform
        schema={client}
        onSubmit={onSubmit}
      />

Documentation