You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ Name|Type|Default|Description
34
34
`src`|`JSON Object`|None|This property contains your input JSON
35
35
`name`|`string`|"root"|Contains the name of your root node
36
36
`collapsed`|`boolean`|`false`|When set to `true`, all nodes will be collapsed by default
37
+
`theme`|`string`|"rjv-default"|RJV supports base-16 themes. Check out the [list of supported themes here](https://github.com/gaearon/base16-js/tree/master/src). A custom "rjv-default" theme applies by default.
37
38
`indentWidth`|`integer`|4|Set the indent-width for nested objects
38
39
`enableClipboard`|`boolean`|`true`|When set to `true`, the user can copy objects and arrays to clipboard
39
40
`displayObjectSize`|`boolean`|`true`|When set to `true`, objects and arrays are labeled with size
@@ -46,7 +47,19 @@ Name|Type|Default|Description
46
47
* Different classes are applied to different types for style interaction
47
48
48
49
### Customizing Style
49
-
update or override `src/style/_variables.scss` to apply your own theme.
50
+
RJV now supports base-16 themes!
51
+
52
+
You can specify a `theme` prop when you instantiate your rjv component.
0 commit comments