pub fn basic_dialog() -> BasicDialogBuilderExpand description
§basic_dialog
Present a brief confirmation or alert with a scrollable message body.
§Usage
Use inside the dialog_content closure of dialog_provider.
§Parameters
dialog— registration scope received from the provider content slot.icon— optional icon slot shown above the headline.headline— optional headline text.supporting_text— body text shown in the dialog.content— optional custom body replacing the supporting text. Overflowing content scrolls while the headline and actions remain visible.confirm_button— optional confirm button slot.dismiss_button— optional dismiss button slot.
§Examples
use tessera_components::{button::button, dialog::basic_dialog, text::text};
basic_dialog()
.supporting_text("This is the dialog body text.")
.headline("Dialog Title")
.confirm_button(|| {
button().filled().on_click(|| {}).child(|| {
text("Confirm");
});
});