MCPcopy Create free account
hub / github.com/TanStack/devtools / JsonTree

Function JsonTree

packages/devtools-ui/src/components/tree.tsx:14–35  ·  view source on GitHub ↗
(props: {
  value: TData
  copyable?: boolean

  defaultExpansionDepth?: number
  collapsePaths?: Array<TName>

  config?: { dateFormat?: string }
})

Source from the content-addressed store, hash-verified

12export function JsonTree<TData, TName extends CollapsiblePaths<TData>>(props: {
13 value: TData
14 copyable?: boolean
15
16 defaultExpansionDepth?: number
17 collapsePaths?: Array<TName>
18
19 config?: { dateFormat?: string }
20}) {
21 return (
22 <JsonValue
23 isRoot
24 value={props.value}
25 copyable={props.copyable}
26 depth={0}
27 defaultExpansionDepth={props.defaultExpansionDepth ?? 1}
28 path=""
29 collapsePaths={props.collapsePaths}
30 config={props.config}
31 />
32 )
33}
34
35function JsonValue(props: {
36 value: any
37 keyName?: string
38 isRoot?: boolean

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected