0.4.0 • Published 6 years ago

react-bootstrap-form-generator v0.4.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

react-bootstrap-form-generator

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

📝 schema -> 📔 react-bootstrap-form

Install

yarn add react-bootstrap-form-generator

Props

NameTypeParamsDescription
schema requiredobject-schema of the model
onSubmitfuncpayloadreceives the object with the values from the input
submitLabelstring-label for the submit button
layout[numbers]-matrix with the col size e.g. [ 4, 8 ] -> col-md-4, col-md-8
verbosebool-for development usage only
cancelLabelstring-label for the cancel button
onCancelfunc-called when you click the cancel button, not providing a function will hide the button
defaultValueobject-

Example

See Example

Contributors

0.4.0

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago