Schema-based form generator component for Vue.js 2.x (v2.3.4). Generates reactive forms from JSON schema, supports 21 field types, built-in validators, Bootstrap-friendly templates, and custom field extensibility. Ships in core (11KB gzipped) and full (19KB gzipped) bundles. Developed by vue-generators, with maintenance focused on Vue 2.x. Uses fecha for date formatting and lodash internally. Alternative to vue-form-builder, offering a simpler schema-driven approach but limited to Vue 2.
npm install vue-form-generatorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup: import component and CSS, register globally or as component, define schema with fields and validators, and bind model.
Use alternative like vue-form-builder for Vue 3, or stay on Vue 2.
Register as `my-field` in components, use `VueFormGenerator.registerField('my-field', MyField)`.Add `import 'vue-form-generator/dist/vfg.css'` after JS import.
Include label for accessibility, but not mandatory.
Use `Vue.use(VueFormGenerator)` for global registration, or add to components object: `components: { 'vue-form-generator': VueFormGenerator.component }`.Run `npm install fecha` or ensure all dependencies installed with `npm install`.
Add `:schema="schema"` to the <vue-form-generator> element.