GPUI Box GitHub

Components

Frost builder

A frosted-glass surface: blurred backdrop, tinted fill, caller's content.

A builder is RenderOnce. Construct and mount it in one expression.

use gpui_kit::overlay::Frost;

Construct

new(ident: impl Into<Ident>) -> Self

Options

Chain onto the value.

surface(surface: Surface) -> Self
radius(radius: Radius) -> Self
blur(blur: f32) -> Self
child(child: impl IntoElement) -> Self

Rendered by

Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.

Source: crates/gpui-kit/src/overlay/frost.rs