A json-forms library for Vue.js that allows you to create forms based on a JSON schema and a UI schema.
npm install @ghentcdh/json-forms-vueA json-forms library for Vue.js that allows you to create forms based on a JSON schema and a UI schema.
It uses the components inside @ghentcdh/ui for styling
``ssh`
pnpm add @ghentcdh/json-forms-vue
`ssh`
pnpm add @ghentcdh/auth/vue @ghentcdh/auth/backend
Add the styling to your project by importing the css file in your main.js or App.vue file:
`scss
`
A json form can be shown using the FormComponent component. The component requires a schema and a ui schema to be passed as props, and it uses the v-model directive to bind the form data.
`vue
import {FormComponent} from '@ghentcdh/json-forms-vue';
{{formData}}