gpui-kit GitHub

Components

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>) -> Self

Options

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) -> 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/layout/scroll.rs