ScrollArea builder
A scrollable region.
A builder is RenderOnce. Construct and mount it in one expression.
use gpui_kit::layout::ScrollArea;
Construct
new(ident: impl Into<Ident>) -> SelfOptions
Chain onto the value.
axis(axis: ScrollAxis) -> Self
vertical() -> Self
horizontal() -> Self
both() -> Self
label(label: impl Into<SharedString>) -> Self
width(width: f32) -> Self
fit_height() -> Self
height(height: f32) -> Self
child(content: impl IntoElement) -> SelfRendered by
Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.