-
Notifications
You must be signed in to change notification settings - Fork 29.9k
/
CSSTransition.d.ts
42 lines (38 loc) · 1.26 KB
/
CSSTransition.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
import { Component } from "react";
import { TransitionProps } from "./Transition";
declare namespace CSSTransition {
interface CSSTransitionClassNames {
appear?: string;
appearActive?: string;
enter?: string;
enterActive?: string;
enterDone?: string;
exit?: string;
exitActive?: string;
exitDone?: string;
}
/**
* The animation classNames applied to the component as it enters or exits.
* A single name can be provided and it will be suffixed for each stage: e.g.
*
* `classNames="fade"` applies `fade-enter`, `fade-enter-active`,
* `fade-exit`, `fade-exit-active`, `fade-appear`, and `fade-appear-active`.
* Each individual classNames can also be specified independently like:
*
* ```js
* classNames={{
* appear: 'my-appear',
* appearActive: 'my-active-appear',
* enter: 'my-enter',
* enterActive: 'my-active-enter',
* exit: 'my-exit',
* exitActive: 'my-active-exit',
* }}
* ```
*/
interface CSSTransitionProps extends TransitionProps {
classNames?: string | CSSTransitionClassNames;
}
}
declare class CSSTransition extends Component<CSSTransition.CSSTransitionProps> {}
export = CSSTransition;