npm.io
0.10.7 • Published 2 years ago

@types/react-motion-ui-pack

Licence
MIT
Version
0.10.7
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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

Credits

These definitions were written by Jason Unger.