react-widgets-up
Version:
An à la carte set of polished, extensible, and accessible inputs built for React
31 lines • 1.2 kB
TypeScript
import React, { ReactNode, RefObject } from 'react';
export declare const TRANSITION_STATES: {
readonly ENTERING: "entering";
readonly ENTERED: "entered";
readonly EXITING: "exiting";
readonly EXITED: "exited";
};
export type TransitionStatus = typeof TRANSITION_STATES[keyof typeof TRANSITION_STATES];
export interface TransitionProps {
in: boolean;
timeout?: number | {
enter?: number;
exit?: number;
};
appear?: boolean;
enter?: boolean;
exit?: boolean;
mountOnEnter?: boolean;
unmountOnExit?: boolean;
nodeRef?: RefObject<HTMLElement | null>;
addEndListener?: (node: HTMLElement, done: () => void) => void;
onEnter?: (node?: HTMLElement) => void;
onEntering?: (node?: HTMLElement) => void;
onEntered?: (node?: HTMLElement) => void;
onExit?: (node?: HTMLElement) => void;
onExiting?: (node?: HTMLElement) => void;
onExited?: (node?: HTMLElement) => void;
children: ReactNode | ((status: TransitionStatus, nodeRef?: RefObject<HTMLElement | null>) => ReactNode);
}
export declare const Transition: React.FC<TransitionProps>;
//# sourceMappingURL=Transition.d.ts.map