Defines additional modal options to control the display of the modal dialog and glasspane.

type OptionsModal = {
    background?: string;
    closeOnInput?: boolean;
    slotSeparate?: boolean;
    styles?: { [key: string]: string };
    transition?: OptionsTransition;
}
Index

Properties

background?: string

CSS background style for glasspane.

closeOnInput?: boolean

When true modal dialog is closed on any click / pointer down event on the glasspane.

slotSeparate?: boolean

Creates a separate DIV element container for slot content.

styles?: { [key: string]: string }

Custom styles applied to glasspane. Provide an object with CSS style properties with keys in kebab case.

transition?: OptionsTransition

Custom transition options for the modal background / glasspane.