DefinitelyTyped/types/react-fade-in/index.d.ts
Barry Michael Doyle ba94ba69b1 Added react-fade-in Type Definitions (#41182)
* added react-fade-in type definitions

* added version in

* added type definitions for react-hook-mousetrap

* resolved prefer-declare-function error
2019-12-27 09:09:48 -06:00

31 lines
807 B
TypeScript

// Type definitions for react-fade-in 0.1
// Project: github.com/gkaemmer/react-fade-in
// Definitions by: Barry Michael Doyle <https://github.com/barrymichaeldoyle>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.1
import { ComponentClass, ReactNode } from 'react';
/**
* Props for a FadeIn component.
*/
export interface FadeInProps {
children?: ReactNode;
className?: string;
/**
* Default: 50. Delay between each child's animation in milliseconds.
*/
delay?: number;
/**
* Default: 400. Duration of each child's animation in milliseconds.
*/
transitionDuration?: number;
}
/**
* Visually animates content on render with FadeIn.js
*/
declare const FadeIn: ComponentClass<FadeInProps>;
export default FadeIn;