@matpool/vue-json-view
vue3 component for displaying javascript arrays and JSON objects.
43,281
5
| Install | |
|---|---|
npm install @matpool/vue-json-view |
|
| Latest Version: | 0.1.8 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Feb 27, 2023 |
| Links: | GitHub · npm |
Maintainer: tangge1119
vue-json-view
JSON viewer component, for Vue.js 3.
This project is forked from react-json-view and is the vue3 version of that.
Show only, can’t modify.
Install
npm install --save @matpool/vue-json-view
Usage
// import the vue-json-view component
import VueJsonView from '@matpool/vue-json-view'
// use the component in your app!
<VueJsonView src={my_json_object} />
Props
| Name | Type | Default | Description |
|---|---|---|---|
src |
JSON Object |
None | This property contains your input JSON |
name |
string or false |
false | Contains the name of your root node. Use null or false for no name. |
theme |
string |
"monokai" | RJV supports base-16 themes. Check out the list of supported themes in the demo. A custom "monokai" theme applies by default. |
collapsed |
boolean or integer |
false |
When set to true, all nodes will be collapsed by default. Use an integer value to collapse at a particular depth. |
sortKeys |
boolean |
false |
set to true to sort object keys |
Related Packages
vue-json-pretty
A JSON tree view component that is easy to use and also supports data selection.
10,656,769
1,471
Version History
| Version | Released | License |
|---|---|---|
| 0.1.8 | MIT | |
| 0.1.7 | MIT | |
| 0.1.6 | MIT | |
| 0.1.5 | MIT | |
| 0.1.4 | MIT | |
| 0.1.3 | MIT | |
| 0.1.2 | MIT | |
| 0.1.0 | MIT |