UNPKG

framer-motion

Version:

An open source and production-ready motion library for React on the web

20 lines (17 loc) • 425 B
import { createContext } from "react" import { VariantLabels } from "../../motion/types" /** * @public */ export interface PresenceContextProps { id: number isPresent: boolean register: (id: number) => () => void onExitComplete?: (id: number) => void initial?: false | VariantLabels custom?: any } /** * @public */ export const PresenceContext = createContext<PresenceContextProps | null>(null)