UNPKG

@kelvininc/ui-components

Version:
19 lines (18 loc) 757 B
import { EventEmitter } from '../../stencil-public-runtime'; import { ICustomCss } from '../../types'; export interface IModalConfig extends ICustomCss { /** (optional) Defines the modal title label */ headerTitle?: string; /** (optional) Defines if the modal has an overlay background */ showOverlay?: boolean; /** (optional) Defines if the modal shows the close button */ showCloseButton?: boolean; } export interface IModalEvents { /** Emitted when the close button is clicked */ clickClose: EventEmitter<MouseEvent>; /** Emitted when the overlay container is clicked */ clickOverlay: EventEmitter<MouseEvent>; /** Emitted when the escape key is pressed */ escapeKeyPressed: EventEmitter<KeyboardEvent>; }