🌐
npm
npmjs.com › package › react-json-tree
react-json-tree - npm
<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
🌐
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://...
🌐
GitHub
github.com › alexkuz › react-json-tree › issues › 112
Unable to expand/collapse all nodes after initial render · Issue #112 · alexkuz/react-json-tree
April 25, 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
🌐
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
Use this online react-json-tree playground to view and fork react-json-tree example apps and templates on CodeSandbox.
🌐
GitHub
github.com › reduxjs › redux-devtools › issues › 468
react-json-tree: The return of shouldExpandNode is not always respected. · Issue #468 reduxjs/redux-devtools
August 14, 2018 - 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
🌐
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 ...
🌐
npm
npmjs.com › package › react-json-tree-with-onexpand
react-json-tree-with-onexpand - npm
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
🌐
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.
Find elsewhere
🌐
GitHub
github.com › alexkuz › react-json-tree
GitHub - alexkuz/react-json-tree: React JSON Viewer Component, Extracted from redux-devtools
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%
🌐
CodeSandbox
codesandbox.io › s › react-json-tree-6wlj4
react-json-tree - CodeSandbox
April 14, 2020 - React JSON Viewer Component, Extracted from redux-devtools
Published   Oct 17, 2019
🌐
GitHub
github.com › josdejong › svelte-jsoneditor › issues › 266
expand all fields in tree mode in ReactJS · Issue #266 · josdejong/svelte-jsoneditor
January 2, 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
🌐
npm
npmjs.com › package › react-json-view-lite
react-json-view-lite - npm
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.
      » npm install react-json-view-lite
    
Published   Sep 06, 2025
Version   2.5.0
Author   AnyRoad
🌐
Telerik
telerik.com › components › treeview › expanding items › expanding all items
React TreeView Expanding Items Expanding All Items - KendoReact
While the TreeView does not provide a built-in feature for expanding and collapsing all its items at once, the component supports such an implementation.
🌐
Tweakcn
next.jqueryscript.net › home › json tree viewer: interactive json data explorer for shadcn/ui
JSON Tree Viewer: Interactive JSON Data Explorer for shadcn/ui
March 31, 2025 - JSON Tree Viewer is a React component designed specifically for applications built with shadcn/ui. It takes your JSON data as input and renders it into an interactive, collapsible tree structure. The component allows you to expand and collapse different levels of the JSON hierarchy.
🌐
Yarn
yarnpkg.com › package
react-json-tree
Yarn is a package manager that doubles down as project manager. Whether you work on simple projects or industry monorepos, whether you're an open source developer or an enterprise user, Yarn has your back · First package manager built specifically around workspaces, Yarn lets you split your ...
🌐
Mantine
mantine.dev › core › tree
Tree | Mantine
import { IconFolder, IconFolderOpen } from '@tabler/icons-react'; import { Group, RenderTreeNodePayload, Tree } from '@mantine/core'; import { CssIcon, NpmIcon, TypeScriptCircleIcon } from '@mantinex/dev-icons'; import { data, dataCode } from './data'; import classes from './Demo.module.css'; interface FileIconProps { name: string; isFolder: boolean; expanded: boolean; } function FileIcon({ name, isFolder, expanded }: FileIconProps) { if (name.endsWith('package.json...
🌐
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%