21 lines
741 B
TypeScript
21 lines
741 B
TypeScript
import { MutableRefObject } from 'react';
|
|
interface TransitionArgs {
|
|
immediate: boolean;
|
|
container: MutableRefObject<HTMLElement | null>;
|
|
classes: MutableRefObject<{
|
|
base: string[];
|
|
enter: string[];
|
|
enterFrom: string[];
|
|
enterTo: string[];
|
|
leave: string[];
|
|
leaveFrom: string[];
|
|
leaveTo: string[];
|
|
entered: string[];
|
|
}>;
|
|
direction: 'enter' | 'leave' | 'idle';
|
|
onStart: MutableRefObject<(direction: TransitionArgs['direction']) => void>;
|
|
onStop: MutableRefObject<(direction: TransitionArgs['direction']) => void>;
|
|
}
|
|
export declare function useTransition({ immediate, container, direction, classes, onStart, onStop, }: TransitionArgs): void;
|
|
export {};
|