Installation
npm install --save @types/react-motion-ui-pack
Summary
This package contains type definitions for react-motion-ui-pack (https://github.com/souporserious/react-motion-ui-pack).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-motion-ui-pack.
index.d.ts
import * as React from "react";
import * as motion from "react-motion";
declare namespace Transition {
interface TransitionProps {
children?: React.ReactNode;
component?: string | boolean | React.ReactElement | undefined;
runOnMount?: boolean | undefined;
appear?: motion.Style | undefined;
enter?: motion.Style | undefined;
leave?: motion.Style | undefined;
onEnter?: ((style: motion.PlainStyle) => void) | undefined;
onLeave?: ((style: motion.Style) => void) | undefined;
}
}
declare const Transition: React.ComponentClass<Transition.TransitionProps>;
export default Transition;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react, @types/react-motion
Credits
These definitions were written by Jason Unger.