react-json-view
Advanced tools
Comparing version 1.3.5 to 1.4.0
{ | ||
"name": "react-json-view", | ||
"description": "interactive json viewer wrapped up in a react component", | ||
"version": "1.3.5", | ||
"version": "1.4.0", | ||
"main": "dist/main.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -29,2 +29,10 @@ # react-json-view | ||
### Props | ||
Name|Type|Default|Description | ||
|:---|:---|:---|:--- | ||
`src`|`JSON Object`|None|This property contains your input JSON | ||
`name`|`string`|"root"|Contains the name of your root node | ||
`collapsed`|`boolean`|false|If set to `true`, all nodes will be collapsed by default | ||
`indentWidth`|`integer`|4|Set the indent-width for nested objects | ||
### Features | ||
@@ -34,3 +42,3 @@ * Object and array nodes can be collapsed and expanded | ||
* Object and array nodes include a "Copy to Clipboard" feature | ||
* Different classes are applied to different types for style interaction. | ||
* Different classes are applied to different types for style interaction | ||
@@ -79,3 +87,2 @@ ### Customizing Style | ||
3. improve customizability | ||
* add optional `depth` prop | ||
* add optional `showTypes` prop | ||
@@ -82,0 +89,0 @@ * add props to define what is expanded/collapsed by default |
Sorry, the diff of this file is too big to display
2288234
9803
89