forked from drcmda/react-animated-tree
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
44 lines (36 loc) · 791 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import * as React from 'react';
export interface TreeProps {
/**
* Name of the node
*/
content?: React.ReactNode;
/**
* Description of the node
*
* This is a good way to provide a custom icon for a node.
*/
type?: React.ReactNode;
/**
* Default open state
*/
open?: boolean;
/**
* Default visible state
*/
visible?: boolean;
/**
* Whether or not an eye icon should be shown for the Tree
*
* Manage user interaction with the eye through the "onClick" prop.
*/
canHide?: boolean;
/**
* Event handler for clicks on the eye
*/
onClick?: React.MouseEventHandler<any>;
/**
* Custom react-spring animation config
*/
springConfig?: Function;
}
export default class Tree extends React.Component<TreeProps> {}