UNPKG

@ark-ui/react

Version:

A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.

16 lines (15 loc) 630 B
import { JsonNode } from '@zag-js/json-tree-utils'; import { TreeView } from '../tree-view'; import { JsonTreeViewOptions } from './json-tree-view-props-context'; import { ForwardRefExoticComponent, RefAttributes } from 'react'; export interface JsonTreeViewRootProps extends Omit<TreeView.RootProps<JsonNode>, 'collection'>, JsonTreeViewOptions { /** * The data to display in the tree. */ data: unknown; /** * The default expand level. */ defaultExpandedDepth?: number; } export declare const JsonTreeViewRoot: ForwardRefExoticComponent<JsonTreeViewRootProps & RefAttributes<HTMLDivElement>>;