motion-v
Version:
<p align="center"> <img width="100" height="100" alt="Motion logo" src="https://user-images.githubusercontent.com/7850794/164965523-3eced4c4-6020-467e-acde-f11b7900ad62.png" /> </p> <h1 align="center">Motion for Vue</h1>
10 lines (9 loc) • 604 B
TypeScript
import { AnimatePresenceProps } from './types';
export declare const doneCallbacks: WeakMap<Element, (v?: any, safeUnmount?: boolean) => void>;
export declare function removeDoneCallback(element: Element): void;
export interface PresenceContext {
initial?: boolean;
custom?: any;
}
export declare const injectAnimatePresence: <T extends PresenceContext = PresenceContext>(fallback?: T) => T extends null ? PresenceContext : PresenceContext, provideAnimatePresence: (contextValue: PresenceContext) => PresenceContext;
export declare function useAnimatePresence(props: AnimatePresenceProps): void;