@material-tailwind/html
Version:
Material Tailwind is an open-source library that uses the power of Tailwind CSS and React to help you build unique web projects faster and easier. The stunning design inspired by Material Design is a bonus!
18 lines (17 loc) • 501 B
TypeScript
/**
* Toggle the modal on or off.
*/
export declare function toggleModal(event: Event): void;
/**
* Close the modal programmatically or via an event.
* Accepts either an Event or a direct HTMLElement.
*/
export declare function closeModal(input: Event | HTMLElement): void;
/**
* Initialize modal triggers and dismiss buttons.
*/
export declare function initModal(): void;
/**
* Cleanup function to remove event listeners from active modals.
*/
export declare function cleanupModals(): void;