Overlay builder
A floating surface.
A builder is RenderOnce. Construct and mount it in one expression.
use gpui_kit::overlay::Overlay;
Construct
new(ident: impl Into<Ident>) -> Self
modal(ident: impl Into<Ident>) -> Self
edge(ident: impl Into<Ident>, edge: Edge) -> SelfOptions
Chain onto the value.
layer(layer: Layer) -> Self
placement(placement: Placement) -> Self
scrim(scrim: bool) -> Self
child(content: impl IntoElement) -> Self
on_dismiss(handler: impl Fn(&mut Window, &mut App) + 'static) -> SelfRendered by
Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.