UNPKG

react-easily-modal

Version:

It is an easy-to-use modal library exclusively for react.js.

20 lines (19 loc) 739 B
import React, { MutableRefObject } from 'react'; import { AnimationOptions, ModalContextType, ModalType } from '../index'; interface PropsType { children: React.ReactNode; className?: string; animation?: AnimationOptions; pathname: string; backActionControl?: { func: (value: { modals: MutableRefObject<ModalType[]>; }) => void; deps?: any[]; }; scrollRelease?: () => void; scrollFreeze?: () => void; } export declare const ModalContext: React.Context<ModalContextType>; declare const ModalProvider: ({ className, animation, children, backActionControl, pathname, scrollRelease, scrollFreeze }: PropsType) => JSX.Element; export default ModalProvider;