UNPKG

@ark-ui/react

Version:

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

13 lines (12 loc) 743 B
import { JSX } from 'react'; import { Assign } from '../../types'; import { RenderStrategyProps } from '../../utils/render-strategy'; import { TreeNode } from '../collection'; import { HTMLProps, PolymorphicProps } from '../factory'; import { UseTreeViewProps } from './use-tree-view'; export interface TreeViewRootBaseProps<T extends TreeNode> extends UseTreeViewProps<T>, RenderStrategyProps, PolymorphicProps { } export interface TreeViewRootProps<T extends TreeNode> extends HTMLProps<'div'>, TreeViewRootBaseProps<T> { } export type TreeViewRootComponent<P = {}> = <T extends TreeNode>(props: Assign<TreeViewRootProps<T>, P> & React.RefAttributes<HTMLDivElement>) => JSX.Element; export declare const TreeViewRoot: TreeViewRootComponent;