Gathering detailed insights and metrics for @dzikoysk/vue-vanilla
Gathering detailed insights and metrics for @dzikoysk/vue-vanilla
Gathering detailed insights and metrics for @dzikoysk/vue-vanilla
Gathering detailed insights and metrics for @dzikoysk/vue-vanilla
Customizable JSON Schema-based forms with React, Angular and Vue support out of the box.
npm install @dzikoysk/vue-vanilla
Typescript
Module System
Node Version
NPM Version
TypeScript (86.01%)
Vue (11.65%)
JavaScript (1.42%)
CSS (0.53%)
HTML (0.22%)
Shell (0.14%)
Dockerfile (0.03%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2,478 Stars
1,553 Commits
404 Forks
32 Watchers
13 Branches
116 Contributors
Updated on Jul 10, 2025
Latest Version
3.4.1
Package Id
@dzikoysk/vue-vanilla@3.4.1
Unpacked Size
620.63 kB
Size
83.32 kB
File Count
81
NPM Version
10.9.0
Node Version
20.15.0
Published on
Nov 22, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
3
39
Complex Forms in the blink of an eye
JSON Forms eliminates the tedious task of writing fully-featured forms by hand by leveraging the capabilities of JSON, JSON Schema and Javascript.
This is the JSON Forms Vue Vanilla renderers package which provides a HTML5-based renderer set for JSON Forms Vue.
See our JSON Forms Vue seed repository to get started as quickly as possible.
Install JSON Forms Core, Vue and Vue Vanilla Renderers
1npm i --save @jsonforms/core @jsonforms/vue @jsonforms/vue-vanilla
Also add the packages to the transpile dependencies in the vue.config.js
file:
1module.exports = { 2 transpileDependencies: [ 3 '@jsonforms/core', 4 '@jsonforms/vue', 5 '@jsonforms/vue-vanilla', 6 ], 7};
Use the json-forms
component for each form you want to render and hand over the renderer set.
1<script> 2import { JsonForms } from '@jsonforms/vue'; 3import { vanillaRenderers } from '@jsonforms/vue-vanilla'; 4import { defineComponent } from 'vue'; 5 6const renderers = [ 7 ...vanillaRenderers, 8 // here you can add custom renderers 9]; 10 11export default defineComponent({ 12 components: { 13 JsonForms, 14 }, 15 data() { 16 return { 17 renderers: Object.freeze(renderers), 18 19 data: { 20 number: 5, 21 }, 22 schema: { 23 properties: { 24 number: { 25 type: 'number', 26 }, 27 }, 28 }, 29 uischema: { 30 type: 'VerticalLayout', 31 elements: [ 32 { 33 type: 'Control', 34 scope: '#/properties/number', 35 }, 36 ], 37 }, 38 }; 39 }, 40 methods: { 41 onChange(event) { 42 this.data = event.data; 43 }, 44 }, 45}); 46</script> 47<template> 48 <json-forms 49 :data="data" 50 :schema="schema" 51 :uischema="uischema" 52 :renderers="renderers" 53 @change="onChange" 54 /> 55</template>
By default the Vanilla Renderers don't apply any CSS at all.
For a quick start you can use @jsonforms/vue-vanilla/vanilla.css
.
For more information on how JSON Forms can be configured, please see the README of @jsonforms/vue
.
Each rendered HTML element specifies a CSS class which can be used to style it. This process can also be customized so that each element declares user-specified CSS classes. Therefore JSON Forms Vue Vanilla can be integrated with any CSS-only UI framework quite easily.
You can find the default CSS classes in `defaultStyles.ts.
To render your own classes simply provide
them as styles
.
These styles
replace the defaultStyles
.
If you want to fall back to defaultStyles
or combine them with your own classes you'll need to do so programmatically, e.g.:
1<script> 2import { JsonForms } from '@jsonforms/vue'; 3import { 4 defaultStyles, 5 mergeStyles, 6 vanillaRenderers, 7} from '@jsonforms/vue-vanilla'; 8import { defineComponent } from 'vue'; 9 10// mergeStyles combines all classes from both styles definitions 11const myStyles = mergeStyles(defaultStyles, { 12 control: { root: 'my-control' }, 13}); 14 15export default defineComponent({ 16 name: 'app', 17 components: { 18 JsonForms, 19 }, 20 data() { 21 return { 22 renderers: Object.freeze(vanillaRenderers), 23 data: { 24 number: 5, 25 }, 26 schema: { 27 properties: { 28 number: { 29 type: 'number', 30 }, 31 }, 32 }, 33 uischema: { 34 type: 'VerticalLayout', 35 elements: [ 36 { 37 type: 'Control', 38 scope: '#/properties/number', 39 }, 40 ], 41 }, 42 }; 43 }, 44 methods: { 45 onChange(event) { 46 this.data = event.data; 47 }, 48 }, 49 provide() { 50 return { 51 styles: myStyles, 52 }; 53 }, 54}); 55</script> 56<template> 57 <json-forms 58 :data="data" 59 :schema="schema" 60 :uischema="uischema" 61 :renderers="renderers" 62 @change="onChange" 63 /> 64</template>
You can also use specify styles in the ui schema via the options.styles
property.
Attributes specified here override the respective defaultStyles
or provided styles
.
Attributes not specified here fall back to either the defaultStyles
or provided styles
.
1{ 2 "type": "Control", 3 "scope": "#/properties/name", 4 "options": { 5 "styles": { 6 "control": { 7 "root": "my-control-root" 8 } 9 } 10 } 11}
The JSONForms project is licensed under the MIT License. See the LICENSE file for more information.
Our current roadmap is available here.
See our migration guide when updating JSON Forms.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
13 commit(s) and 8 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
packaging workflow detected
Details
Reason
Found 21/29 approved changesets -- score normalized to 7
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
50 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More