Getting Started
Installation
Depends on Vue, Ajv for validation, and Buefy for the default form elements.
npm install vue-json-schema-form
Usage
Webpack
Global registration:
import Vue from 'vue'
import VueJsonSchemaForm from 'vue-json-schema-form'
Vue.use(VueJsonSchemaForm)
Or in your components:
import {SchemaForm} from 'vue-json-schema-form'
export default {
name: "MyComponent",
components: {
SchemaForm
},
...
}
Browser / CDN
<!-- CSS -->
<link rel="stylesheet" href="https://unpkg.com/vue-json-schema-form/dist/vue-json-schema-form.css">
<!-- JavaScript -->
<script src="https://unpkg.com/vue-json-schema-form"></script>
Vue.use(VueJsonSchemaForm.default)