react-json-tree
Version:
React JSON Viewer Component, Extracted from redux-devtools
12 lines (11 loc) • 771 B
TypeScript
import React from 'react';
import type { StylingValue, Theme } from 'react-base16-styling';
import type { CommonExternalProps } from './types.js';
interface Props extends Partial<CommonExternalProps> {
data: unknown;
theme?: Theme;
invertTheme?: boolean;
}
export declare function JSONTree({ data: value, theme, invertTheme: shouldInvertTheme, keyPath, labelRenderer, valueRenderer, shouldExpandNodeInitially, hideRoot, getItemString, postprocessValue, isCustomNode, collectionLimit, sortObjectKeys, }: Props): React.JSX.Element;
export type { Key, KeyPath, GetItemString, LabelRenderer, ValueRenderer, ShouldExpandNodeInitially, PostprocessValue, IsCustomNode, SortObjectKeys, Styling, CommonExternalProps, } from './types.js';
export type { StylingValue };