-
Notifications
You must be signed in to change notification settings - Fork 153
/
index.d.ts
48 lines (45 loc) · 1.36 KB
/
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
45
46
47
48
import * as React from "react";
declare class Collapsible extends React.Component<CollapsibleProps> {}
export interface CollapsibleProps extends React.HTMLProps<Collapsible> {
transitionTime?: number;
transitionCloseTime?: number | null;
triggerTagName?: string;
easing?: string;
open?: boolean;
containerElementProps?: object;
classParentString?: string;
openedClassName?: string;
triggerStyle?: null | React.CSSProperties;
triggerClassName?: string;
triggerOpenedClassName?: string;
triggerElementProps?: object;
contentElementId?: string;
contentOuterClassName?: string;
contentInnerClassName?: string;
accordionPosition?: string | number;
handleTriggerClick?: (accordionPosition?: string | number) => void;
onOpen?: () => void;
onClose?: () => void;
onOpening?: () => void;
onClosing?: () => void;
onTriggerOpening?: () => void;
onTriggerClosing?: () => void;
trigger: string | React.ReactElement<any>;
triggerWhenOpen?: string | React.ReactElement<any>;
triggerDisabled?: boolean;
lazyRender?: boolean;
overflowWhenOpen?:
| "hidden"
| "visible"
| "auto"
| "scroll"
| "inherit"
| "initial"
| "unset";
contentHiddenWhenClosed?: boolean;
triggerSibling?: string | React.ReactElement<any>;
className?: string;
tabIndex?: number;
contentContainerTagName?: string;
}
export default Collapsible;