@carbon/react
Version:
React components for the Carbon Design System
19 lines (18 loc) • 644 B
TypeScript
/**
* Copyright IBM Corp. 2016, 2025
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import type { TreeNodeProps } from './TreeNode';
interface TreeContextProps {
active?: string | number;
multiselect?: boolean;
onActivate?: (nodeId?: string | number) => void;
onTreeSelect?: TreeNodeProps['onTreeSelect'];
selected?: Array<string | number>;
size?: 'xs' | 'sm';
}
export declare const TreeContext: import("react").Context<TreeContextProps | null>;
export declare const DepthContext: import("react").Context<number>;
export {};