pub fn bottom_sheet_provider() -> BottomSheetProviderBuilderExpand description
§bottom_sheet_provider
Provides a modal bottom sheet for contextual actions or information.
§Usage
Show contextual menus, supplemental information, or simple forms without navigating away from the main screen.
§Parameters
accessibility_label— accessible name describing the dialog or sheet.on_close_request— optional callback invoked when the sheet requests closing.is_open— declarative open state.controller— optional external controller for programmatic open/close.partial_height— optional partial height, including the drag handle; defaults to the content’s natural height. It is limited to the available height and is at least 48dp when that space is available.main_content— optional main content rendered behind the sheet.bottom_sheet_content— optional content rendered inside the sheet.
§Examples
use tessera_components::bottom_sheet::bottom_sheet_provider;
bottom_sheet_provider()
.accessibility_label("Additional options")
.on_close_request(|| {})
.is_open(true)
.partial_height(tessera_ui::Dp(240.0))
.main_content(|| { /* main content */ })
.bottom_sheet_content(|| { /* bottom sheet content */ });