react-lightning-design-system
Version:
Salesforce Lightning Design System components built with React
26 lines (25 loc) • 864 B
TypeScript
import React, { HTMLAttributes, FC } from 'react';
import { TreeNodeProps } from './TreeNode';
/**
*
*/
export declare const TreeContext: React.Context<{
toggleOnNodeClick?: boolean | undefined;
onNodeClick?: ((e: React.MouseEvent, props: TreeNodeProps) => void) | undefined;
onNodeLabelClick?: ((e: React.MouseEvent, props: TreeNodeProps) => void) | undefined;
onNodeToggle?: ((e: React.MouseEvent, props: TreeNodeProps) => void) | undefined;
}>;
/**
*
*/
export type TreeProps = {
label?: string;
toggleOnNodeClick?: boolean;
onNodeClick?: (e: React.MouseEvent, props: TreeNodeProps) => void;
onNodeLabelClick?: (e: React.MouseEvent, props: TreeNodeProps) => void;
onNodeToggle?: (e: React.MouseEvent, props: TreeNodeProps) => void;
} & HTMLAttributes<HTMLDivElement>;
/**
*
*/
export declare const Tree: FC<TreeProps>;