UNPKG

@ducor/react

Version:

admin template ui interface

25 lines (24 loc) 928 B
export interface TreeViewContextState { ariaLabel?: string; height: number; width: number; expandedPaths: string[]; setExpandedPaths: (paths: string[]) => void; addExpandedPath: (path: string) => void; removeExpandedPath: (path: string) => void; activePath: string | null; setActivePath: (path: string) => void; activeItem: any; setActiveItem: (item: any) => void; sidebar_position: 'static' | 'fixed' | 'absolute'; sidebar_type: 'full' | 'mini'; childPosition: 'top_left' | 'top_right' | 'bottom_left' | 'bottom_right'; } export declare const TreeViewContext: import("react").Context<TreeViewContextState | undefined>; export interface TreeItemContextState { isExpanded?: boolean; dept: number; addExpandedPath: () => void; removeExpandedPath: () => void; } export declare const TreeItemContext: import("react").Context<TreeItemContextState | undefined>;