@patternfly/react-core
Version:
This library provides a set of common React components for use with the PatternFly reference implementation.
29 lines • 1.16 kB
TypeScript
import { Component } from 'react';
export interface TreeViewRootProps {
/** Child nodes of the tree view */
children: React.ReactNode;
/** Flag indicating if the tree view has checkboxes. */
hasCheckboxes?: boolean;
/** Flag indicating if tree view has guide lines. */
hasGuides?: boolean;
/** Variant presentation styles for the tree view. */
variant?: 'default' | 'compact' | 'compactNoBackground';
/** Class to add to add if not passed a parentItem */
className?: string;
/** Flag indicating that tree nodes should be independently selectable, even when having children */
hasSelectableNodes?: boolean;
}
declare class TreeViewRoot extends Component<TreeViewRootProps> {
displayName: string;
private treeRef;
componentDidMount(): void;
componentWillUnmount(): void;
handleKeys: (event: KeyboardEvent) => void;
handleKeysCheckbox: (event: KeyboardEvent) => void;
variantStyleModifiers: {
[key in TreeViewRootProps['variant']]: string | string[];
};
render(): import("react/jsx-runtime").JSX.Element;
}
export { TreeViewRoot };
//# sourceMappingURL=TreeViewRoot.d.ts.map