gpui-kit GitHub

Components

Skeleton builder

Placeholder rows shown while a list's real shape is unknown.

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

use gpui_kit::display::Skeleton;

Construct

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

Options

Chain onto the value.

label(label: impl Into<gpui::SharedString>) -> Self
rows(rows: usize) -> Self
row_height(row_height: f32) -> 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/display/loading.rs