react-material-overlay
Version:
A fully featured Material UI implementation of overlays like modals, alert dialogs, lightboxes, and bottom sheets featuring easy stack management and browser history integration
32 lines • 648 B
TypeScript
import { Id } from '../types';
interface PopParams {
/**
* Id check to prevent multiple pop call accidently
*/
id: Id;
}
/**
* Remove(close) overlays programmatically
*
* - Remove the last active overlay:
* ```
* pop()
* ```
*
* - Remove the last two active overlays:
* ```
* pop(2)
* ```
*
* - Remove the last active overlay with Id check to prevent multiple pop call accidently:
* ```
* pushModal('someContent', { modalId: 'my-modal-id' });
* .
* .
* .
* pop({ id:'my-modal-id' });
* ```
*/
export default function pop(param?: number | PopParams): Promise<void>;
export {};
//# sourceMappingURL=pop.d.ts.map