UNPKG

react-use-modal-wrapper

Version:

A lightweight and customizable modal hook for React. Easily add modals to your app with minimal code.

16 lines (13 loc) 439 B
interface IModalWrapperProps { children?: React.ReactNode; className?: string; backdropClose?: boolean; backdropClassName?: string; } interface IModalWrapperResponse { modal?: React.ReactNode; openModal?: () => void; closeModal?: () => void; } declare const useModalWrapper: ({ children, className, backdropClose, backdropClassName }: IModalWrapperProps) => IModalWrapperResponse; export { useModalWrapper };