Elements

Components

Json Tree View

JsonTreeView, dressed in the paper-and-ink system: the tree-view recipes re-scoped, with value nodes reading as tabular data. The parts — Root, Tree, plus createJsonTreeCollection.

#Basic usage

json-tree-view/basic Vue React
{ title: "Paper & Ink", accent: "qinghua", density: "default", … }
title:"Paper & Ink"
accent:"qinghua"
density:"default"
contrast:4.8

#Props

#KeyNode

PropTypeDefaultDescription
nodeJsonNodeThe node to render.
showQuotesbooleanWhether to show quotes on the key.

#Node

PropTypeDefaultDescription
indentGuideboolean—
indexPathnumber[]—
nodeJsonNode—

#Root

PropTypeDefaultDescription
dataobjectThe data to display in the tree.
defaultExpandedDepthnumberThe default expand level.
quotesOnKeysbooleanWhether to show quotes on the keys.

#Tree

A styled part — no props of its own; it takes the anatomy's shared styling.

#ValueNode

PropTypeDefaultDescription
nodeJsonNodeHastElement—