2.0.3 • Published 3 years ago

@mzaghetto/svelte-json-tree v2.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

svelte-json-tree

Svelte JsonTree

Install

$ yarn add @mzaghetto/svelte-json-tree

or

$ npm i @mzaghetto/svelte-json-tree

Usage

You can see an example here: https://svelte.dev/repl/1cf6feddd37243ac8a7c48d9c6ad26d3?version=3.38.2

Props

PropTypeOptions/notes
keyStringSet the key name to start your json tree
dataJSONJSON data source
openBooleanSet if your tree started open or close
indentNumberSet the indent tree in em
tabSizeNumberSet the indent for child in em
bold-When pass this prop, the title will be bold
svgStringChange SVG used to open state
svgCloseStringChange SVG used to close state
--fillStringSet the color to SVG, can be used HSL, RGB, Color Name
--widthStringSet the width to SVG in px or em
--heigthStringSet the heigth to SVG in px or em

License

MIT © Marcos Zaghetto

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago