Type Alias PopUpInstance

PopUpInstance: {
    handleClose: (
        id: string,
        shown: boolean,
        destroyOnClose?: boolean,
    ) => void;
    options: PopUpOptions;
    overlay?: Content;
    shown: boolean;
    toggleOverlay: (id: string, content?: Content) => void;
}

Represents an instance of a PopUp.

Type declaration

  • handleClose: (id: string, shown: boolean, destroyOnClose?: boolean) => void

    Handles closing the PopUp.

  • options: PopUpOptions

    The options for the PopUp.

  • Optionaloverlay?: Content

    The overlay content for the PopUp.

  • shown: boolean

    Indicates whether the PopUp is shown.

  • toggleOverlay: (id: string, content?: Content) => void

    Toggles the overlay content for the PopUp.