UNPKG

976 BTypeScriptView Raw
1import * as React from 'react';
2export interface TreeViewRootProps {
3 /** Child nodes of the tree view */
4 children: React.ReactNode;
5 /** Flag indicating if the tree view has checkboxes */
6 hasChecks?: boolean;
7 /** Flag indicating if tree view has guide lines. */
8 hasGuides?: boolean;
9 /** Variant presentation styles for the tree view. */
10 variant?: 'default' | 'compact' | 'compactNoBackground';
11 /** Class to add to add if not passed a parentItem */
12 className?: string;
13}
14export declare class TreeViewRoot extends React.Component<TreeViewRootProps> {
15 displayName: string;
16 private treeRef;
17 componentDidMount(): void;
18 componentWillUnmount(): void;
19 handleKeys: (event: KeyboardEvent) => void;
20 handleKeysCheckbox: (event: KeyboardEvent) => void;
21 variantStyleModifiers: {
22 [key in TreeViewRootProps['variant']]: string | string[];
23 };
24 render(): JSX.Element;
25}
26//# sourceMappingURL=TreeViewRoot.d.ts.map
\No newline at end of file