Skip to main content

standard_side_sheet_provider

Function standard_side_sheet_provider 

Source
pub fn standard_side_sheet_provider() -> StandardSideSheetProviderBuilder
Expand description

§standard_side_sheet_provider

Show a standard side sheet that keeps the main content interactive.

§Usage

Present supplementary tools or information that can remain open while the user continues interacting with the main UI.

§Parameters

  • accessibility_label — accessible name describing the dialog or sheet.
  • on_close_request — optional close-request callback.
  • position — side sheet edge position.
  • is_open — declarative open state.
  • controller — optional external controller.
  • main_content — optional main content rendered behind the sheet.
  • side_sheet_content — optional side sheet content.

§Examples

use tessera_components::side_sheet::standard_side_sheet_provider;
material_theme()
    .theme(|| MaterialTheme::default())
    .child(|| {
        standard_side_sheet_provider()
            .accessibility_label("Details")
            .on_close_request(|| {})
            .is_open(true)
            .main_content(|| { /* main content */ })
            .side_sheet_content(|| { /* side sheet content */ });
    });