Module dialog

Source
Expand description

Provides a modal dialog component for overlaying content and intercepting user input.

This module defines a dialog provider for creating modal dialogs in UI applications. It allows rendering custom dialog content above the main application, blocking interaction with underlying elements and intercepting keyboard/mouse events (such as ESC or scrim click) to trigger close actions. Typical use cases include confirmation dialogs, alerts, and any scenario requiring user attention before proceeding.

The dialog is managed via DialogProviderArgs and the dialog_provider function. See the example in dialog_provider for usage details.

Structs§

DialogProviderArgs
Arguments for the dialog_provider component.
DialogProviderArgsBuilder
Builder for DialogProviderArgs.
DialogProviderState

Enums§

DialogProviderArgsBuilderError
Error type for DialogProviderArgsBuilder

Functions§

dialog_provider
A provider component that manages the rendering and event flow for a modal dialog.