@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!
35 lines (34 loc) • 694 B
TypeScript
/**
* Configuration options for the Modal component.
*/
export interface ModalConfig {
/**
* Whether the Escape key should close the modal (default: true).
*/
keyboard?: boolean;
/**
* Whether clicking outside the modal content should close the modal (default: true).
*/
closeOnOutsideClick?: boolean;
}
/**
* Interface for the Modal component.
*/
export interface IModal {
/**
* Show the modal.
*/
show(): void;
/**
* Hide the modal.
*/
hide(): void;
/**
* Toggle the modal's visibility.
*/
toggle(): void;
/**
* Check if the modal is currently visible.
*/
isVisible(): boolean;
}