@devtools-ds/tree
Version:
A versatile expanding `Tree` component, with full keyboard navigation following the [Tree View Design Pattern](https://www.w3.org/TR/wai-aria-practices/examples/treeview/treeview-2/treeview-2a.html).
12 lines • 372 B
TypeScript
import React from 'react';
interface TreeContext {
/** Whether the current tree is a child of another */
isChild: boolean;
/** Depth of current node */
depth: number;
/** Whether to have hover styles */
hasHover: boolean;
}
declare const TreeContext: React.Context<TreeContext>;
export default TreeContext;
//# sourceMappingURL=TreeContext.d.ts.map