Module glass_dialog

Source
Expand description

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

This module defines a dialog provider for creating modal glass 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 GlassDialogProviderArgs and the glass_dialog_provider function. See the example in glass_dialog_provider for usage details.

Structs§

GlassDialogProviderArgs
Arguments for the glass_dialog_provider component.
GlassDialogProviderArgsBuilder
Builder for GlassDialogProviderArgs.
GlassDialogProviderState

Enums§

GlassDialogProviderArgsBuilderError
Error type for GlassDialogProviderArgsBuilder

Functions§

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