npm
npmjs.com › package › react-json-tree
react-json-tree - npm
March 1, 2025 - <JSONTree labelRenderer={([key]) => <strong>{key}</strong>} valueRenderer={(raw) => <em>{raw}</em>} /> In this example the label and value will be rendered with <strong> and <em> wrappers respectively. For labelRenderer, you can provide a full path - see this PR. ... shouldExpandNodeInitially: function(keyPath, data, level) - determines if node should be expanded when it first renders (root is expanded by default)
» npm install react-json-tree
Published Mar 01, 2025
Version 0.20.0
Author Shu Uesugi
Repository https://github.com/reduxjs/redux-devtools
UNPKG
unpkg.com › browse › @alexkuz › react-json-tree@0.5.3 › README.md
alexkuz/react-json-tree/README.md - UNPKG
#### More Options - Add `expandAll` property to expand all nodes. - Add `hideRoot={true}` to hide a root node. ### Credits - All credits to [Dave Vedder](http://www.eskimospy.com/) ([veddermatic@gmail.com](mailto:veddermatic@gmail.com)), who wrote the original code as [JSONViewer](https://...
Mozilla Bugzilla
bugzilla.mozilla.org › show_bug.cgi
1264557 - JSON Viewer: manually auto-expand documents
... This is a patch that has a couple of changes in relation to the past patch. * The expandedNodes set is not copied one-by-one, but is replaced as suggested by Oriol * The "Expand All" button is now hidden for documents larger than 100kB, the same size that disables auto-expand, as suggested ...
CodeSandbox
codesandbox.io › examples › package › react-json-tree
react-json-tree examples - CodeSandbox
react-json-tree-exampleReact-Json-Tree example · eosjs_demo · react-oidc-client-jsOpenID Connect (OIDC) javascript client with React · amplify-react-app · react-table-functional-rendering · tannerlinsley/react-charts: grouping-modes · react-adaptive-streaming ·
npm
npmjs.com › package › react-json-view-lite
react-json-view-lite - npm
September 6, 2025 - component uses collapseIcon, expandIcon, collapsedContent styles in order to customize expand/collapse icon and collpased content placeholder which were previously hardcode to the ▸, ▾ and .... Default style values use ::after pseudo-classes to set the content. import * as React from 'react'; import { JsonView, allExpanded, darkStyles, defaultStyles } from 'react-json-view-lite'; import 'react-json-view-lite/dist/index.css'; const json = { a: 1, b: 'example' }; const App = () => { return ( <React.Fragment> <JsonView data={json} shouldExpandNode={allExpanded} style={defaultStyles} /> <JsonView data={json} shouldExpandNode={allExpanded} style={darkStyles} /> </React.Fragment> ); }; export default App;
» npm install react-json-view-lite
Published Sep 06, 2025
Version 2.5.0
Author AnyRoad
GitHub
github.com › alexkuz › react-json-tree › issues › 112
Unable to expand/collapse all nodes after initial render · Issue #112 · alexkuz/react-json-tree
July 24, 2018 - I want to use local state to control whether the all the nodes are expanded or collapsed. If I set a local state variable to true and then return that in an an anonymous function assigned to shouldExpandNode() then everything works as expected.
Author jeremypeters
react-json-view
mac-s-g.github.io › react-json-view
react-json-view | JSON viewer for react
A custom “rjv-default” theme ... for react-json-view container. Explicit style attributes will override attributes provided by a theme. iconStyle|string|”circle”| Style of expand/collapse icons. Accepted values are “circle”, triangle” or “square”. indentWidth|integer|4|Set the indent-width for nested objects collapsed|boolean or integer|false|When set to true, all nodes will ...
GitHub
github.com › reduxjs › redux-devtools › issues › 468
react-json-tree: The return of shouldExpandNode is not always respected. · Issue #468 reduxjs/redux-devtools
March 20, 2019 - In some cases the value shouldExpandNode function is not respected and nodes stay closed(or opened) incorrectly. This seems to be caused by this line: https://github.com/reduxjs/redux-devtools/blob/master/packages/react-json-tree/src/JSO...
Author istanishev
Stack Overflow
stackoverflow.com › questions › 71865019 › on-link-click-how-to-expand-all-and-collapse-all-tree-nodes
reactjs - On Link Click, how to expand all and collapse all tree nodes? - Stack Overflow
April 14, 2022 - try this sandbox, it shows how to open/close all https://codesandbox.io/s/react-tree-renerer-forked-f5g46l?file=/src/components/Event.js
GitHub
github.com › josdejong › svelte-jsoneditor › issues › 266
expand all fields in tree mode in ReactJS · Issue #266 · josdejong/svelte-jsoneditor
May 1, 2023 - Hi, I try to expend all the fields in tree mode in react right from the start, I saw there is an expand function: refEditor.current?.expand((path) => true); I try to do it in the useEffect when ...
Author nitzcard
UNPKG
unpkg.com › browse › react-json-tree@0.15.0 › README.md
react-json-tree/README.md
For `labelRenderer`, you can provide a full path - [see this PR](https://github.com/chibicode/react-json-tree/pull/32). Their full signatures are: - `labelRenderer: function(keyPath, nodeType, expanded, expandable)` - `valueRenderer: function(valueAsString, value, ...keyPath)` #### More Options - `shouldExpandNode: function(keyPath, data, level)` - determines if node should be expanded (root is expanded by default) - `hideRoot: boolean` - if `true`, the root node is hidden.
npm
npmjs.com › package › react-json-tree-with-onexpand
react-json-tree-with-onexpand - npm
November 20, 2020 - onExpand: function(data, level, keyPath) - on expand callback · All credits to Dave Vedder (veddermatic@gmail.com), who wrote the original code as JSONViewer.
» npm install react-json-tree-with-onexpand
Published Nov 20, 2020
Version 0.13.2
Author Shu Uesugi
Repository https://github.com/reduxjs/redux-devtools
Telerik
telerik.com › components › treeview › expanding items › expanding all items
React TreeView Expanding Items Expanding All Items - KendoReact
To enable the expand-all mode for its items, set the expanded field of each TreeView node to true. To enable the collapse-all mode for its items, set the expanded field of each TreeView node to a falsy value.
GitHub
github.com › alexkuz › react-json-tree
GitHub - alexkuz/react-json-tree: React JSON Viewer Component, Extracted from redux-devtools
May 14, 2020 - shouldExpandNode: function(keyName, data, level) - determines if node should be expanded (root is expanded by default) hideRoot: Boolean - if true, the root node is hidden. sortObjectKeys: Boolean | function(a, b) - sorts object keys with compare function (optional). Isn't applied to iterable maps like Immutable.Map. All credits to Dave Vedder (veddermatic@gmail.com), who wrote the original code as JSONViewer.
Starred by 997 users
Forked by 115 users
Languages JavaScript 100.0% | JavaScript 100.0%
GitHub
github.com › AnyRoad › react-json-view-lite
GitHub - AnyRoad/react-json-view-lite: Lightweight Json view component for React
react-json-view-lite is a tiny component for React allowing to render JSON as a tree. It focused on the balance between performance for large JSON inputs and functionality. It might not have all the rich features (suce as customization, copy, json editinng) but still provides more than just rendering json with highlighting - e.g. ability to collapse/expand nested objects and override css.
Starred by 235 users
Forked by 25 users
Languages TypeScript 95.9% | CSS 4.1% | TypeScript 95.9% | CSS 4.1%
CodeSandbox
codesandbox.io › s › react-json-tree-6wlj4
react-json-tree - CodeSandbox
Published Oct 17, 2019
Repository https://codesandbox.io/s/6wlj4
GitHub
github.com › mac-s-g › react-json-view
GitHub - mac-s-g/react-json-view: JSON viewer for react · GitHub
Style attributes for react-json-view container. Explicit style attributes will override attributes provided by a theme. ... Style of expand/collapse icons. Accepted values are "circle", triangle" or "square". ... When set to true, all nodes will be collapsed by default.
Starred by 3.7K users
Forked by 500 users
Languages JavaScript 96.4% | Shell 2.9%