model-to-form

0.0.1 • Public • Published

react-bootstrap-form-generator

provide a schema and a layout and it will generate the form for you

Install

yarn add react-bootstrap-form-generator

Props

Name Type Params Description
schema required object - schema of the model
onSubmit func payload receives the object with the values from the input
submitLabel string - label for the submit button
layout [[numbers]] - matrix with the col size e.g. [[ 4, 8 ]] -> col-md-4, col-md-8
verbose bool - for development usage only

Example

See Example

Contributors

Readme

Keywords

none

Package Sidebar

Install

npm i model-to-form

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

2.78 kB

Total Files

4

Last publish

Collaborators

  • g3org3