react-use-modal-wrapper
Version:
A lightweight and customizable modal hook for React. Easily add modals to your app with minimal code.
20 lines (17 loc) • 449 B
text/typescript
export interface IModalWrapperContextProps {
options?: IModalWrapperProps;
showModal?: boolean;
setShowModal?: (modal: boolean) => void;
children?: React.ReactNode;
}
export interface IModalWrapperProps {
children?: React.ReactNode;
className?: string;
backdropClose?: boolean;
backdropClassName?: string;
}
export interface IModalWrapperResponse {
modal?: React.ReactNode;
openModal?: () => void;
closeModal?: () => void;
}