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§
- Glass
Dialog Provider Args - Arguments for the
glass_dialog_provider
component. - Glass
Dialog Provider Args Builder - Builder for
GlassDialogProviderArgs
. - Glass
Dialog Provider State
Enums§
- Glass
Dialog Provider Args Builder Error - Error type for GlassDialogProviderArgsBuilder
Functions§
- glass_
dialog_ provider - A provider component that manages the rendering and event flow for a modal dialog.