@banclo/jsonforms-preview
Live form preview panel that renders JSON Forms schemas using pluggable adapters.
627
| Install | |
|---|---|
npm install @banclo/jsonforms-preview |
|
| Latest Version: | 0.0.6 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | May 6, 2026 |
| Links: | npm |
Maintainer: banclo-tech
@banclo/jsonforms-preview
Live form preview panel that renders JSON Forms schemas using pluggable adapters.
Installation
npm install @banclo/jsonforms-preview @banclo/jsonforms-core
# or
pnpm add @banclo/jsonforms-preview @banclo/jsonforms-core
What's Included
Components
PreviewPanel— Renders a live form from JSON Schema + UI Schema using an adapterPreviewDialog— Modal wrapper aroundPreviewPanelPreviewDataViewer— Displays the form's current data as JSON
Adapters
vanillaAdapter— Built-in adapter using@jsonforms/vue-vanilla- Vuetify adapter — Optional, lazy-loaded to keep Vuetify as an optional dependency
Utilities
mergeRenderers— Combine custom renderers with an adapter's built-in renderers
Basic Usage
<script setup>
import { PreviewPanel, vanillaAdapter } from '@banclo/jsonforms-preview'
const jsonSchema = { type: 'object', properties: { name: { type: 'string' } } }
const uiSchema = { type: 'VerticalLayout', elements: [{ type: 'Control', scope: '#/properties/name' }] }
</script>
<template>
<PreviewPanel
:json-schema="jsonSchema"
:ui-schema="uiSchema"
:adapter="vanillaAdapter"
/>
</template>
Vuetify Adapter
The Vuetify adapter is lazy-loaded to keep vuetify optional:
const { createVuetifyAdapter } = await import('@banclo/jsonforms-preview/adapters/vuetify-adapter')
const adapter = createVuetifyAdapter()
License
MIT
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.6 | ^3.5.0 | MIT | |
| 0.0.4 | ^3.5.0 | MIT | |
| 0.0.3 | ^3.5.0 | MIT | |
| 0.0.2 | ^3.5.0 |