gpui-kit GitHub

Components

ProgressBar builder

A horizontal bar for work whose extent is known.

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

use gpui_kit::display::ProgressBar;

Construct

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

Options

Chain onto the value.

label(label: impl Into<SharedString>) -> Self
fraction(fraction: f32) -> Self
count(done: usize, total: usize) -> Self
display(display: impl Into<SharedString>) -> 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/progress.rs