1 | import * as React from "react";
|
2 |
|
3 | interface onChangeProps {
|
4 | state: string;
|
5 | style: React.CSSProperties;
|
6 | }
|
7 | interface onInitProps {
|
8 | state: string;
|
9 | style: React.CSSProperties;
|
10 | node: HTMLElement;
|
11 | }
|
12 |
|
13 | export interface CollapseProps {
|
14 | isOpen?: boolean;
|
15 | render?: (collapseState: string) => void;
|
16 | className?: string;
|
17 | transition?: string;
|
18 | collapseHeight?: string;
|
19 | onChange?: (props: onChangeProps) => void;
|
20 | onInit?: (props: onInitProps) => void;
|
21 | elementType?: string;
|
22 | style?: React.CSSProperties;
|
23 | addState?: boolean;
|
24 | noAnim?: boolean;
|
25 | overflowOnExpanded?: boolean;
|
26 | children?: React.ReactNode | ((collapseState: string) => void);
|
27 | }
|
28 |
|
29 | declare const Collapse: React.FunctionComponent<CollapseProps>;
|
30 |
|
31 | export default Collapse;
|
32 |
|
\ | No newline at end of file |