UNPKG

@lanyue/react-object-viewer

Version:

A flexible and lightweight object viewer component for React.

20 lines (18 loc) 659 B
import { ReactNode } from 'react'; export interface TreeProps extends React.ComponentProps<'div'> { children: ReactNode; showLine?: boolean; } export declare function Tree({ children, showLine, ...attrs }: TreeProps): import("react/jsx-runtime").JSX.Element; export interface TreeItemProps { label: ReactNode; icon?: ReactNode; expand?: boolean; hideSpece?: boolean; children?: ReactNode; className?: string; canClickLabelExtend?: boolean; attrs?: React.ComponentProps<'div'>; onExpand?: (expand: boolean) => void; } export declare function TreeItem(props: TreeItemProps): import("react/jsx-runtime").JSX.Element;