Skip to main content

Sheet

Function Sheet 

Source
pub fn Sheet(_: SheetProps) -> Element
Expand description

A temporary surface that slides in from an edge, holding whatever its children are.

It is a Dialog in every way that crosses the boundary: open seeds the Renderer’s own open state and carries a change that came from elsewhere, and on_dismiss says once that the user asked to close it. The drag itself does not cross: while the sheet is being pulled about, Rust hears nothing, and only a drag that ends in a dismissal is reported, once.

Which edge it comes from is the Renderer’s decision, made from the width it measured: up from the bottom in a narrow window, in from the side in a wide one. There is no property that could ask for one of them, for the same reason there is none that can ask a date picker for a wheel.

§Props

For details, see the props struct definition.