mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-25 10:12:52 +00:00
Since v2.9.0, the `appearDone` class name has been supported.
See also:
- https://github.com/reactjs/react-transition-group/blob/v2.9.0/CHANGELOG.md
- fe3c156c11
44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
import { Component } from "react";
|
|
import { TransitionProps } from "./Transition";
|
|
|
|
declare namespace CSSTransition {
|
|
interface CSSTransitionClassNames {
|
|
appear?: string;
|
|
appearActive?: string;
|
|
appearDone?: 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;
|