0.0.1 • Published 6 years ago

model-to-form v0.0.1

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

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

Example

See Example

Contributors