Skip to content

g3org3/react-bootstrap-form-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

32 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

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
cancelLabel string - label for the cancel button
onCancel func - called when you click the cancel button, not providing a function will hide the button
defaultValue object -

Example

See Example

Contributors

About

πŸ“ schema -> πŸ“” react-bootstrap-form

Resources

License

Stars

Watchers

Forks

Packages

No packages published