A JSON schema based form generator, bring your components!
Use any Vue component or HTML element!
There are no prebuilt components for you to puzzle your form together with. Instead you can use any component or element which emits an event, custom or native.
Note that essentially all Vue components that uses v-model emits an input (or similar) event. See Vue's guide for more info
Installation
Upgrading from v1? Check out the v2 release notes to see if and how migration affects you.
Check out the demos or see a minimal example in the usage instructions to get started.
UMD
If you're using the UMD version you can find more examples in the examples folder of the github repo and the UMD demo below.
If you want to use vue-form-json-schema directly in a browser you can do so by using the UMD version. The UMD version autoinstalls the vue-form-json-schema component if Vue is found on the window. The entire module is also available on window.VueFormJsonSchema where the named exports such as for example vfjsFieldMixin can be accessed.
Using Bootstrap classes to show how layout can be different for devices with different screen sizes. In this example two input fields will be wrapped inside a div with col-12 col-sm-6 classes. Try resizing your browser window too see it in action.
For form validation using JSON Schema and internal validation
Lodash
get, set and merge are used throughout the package. Bundle size is very important though and is always considered and so we heavily strip down lodash to only include the absolute necessities
Vue
Tested with v2.5.9 but will probably work on any version >= v2.4.0