GPUI Box GitHub

Components

Sparkline builder

A compact, accessible trend reading.

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

use gpui_kit::display::Sparkline;

Construct

new(ident: impl Into<Ident>, label: impl Into<SharedString>, state: SparklineState) -> 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/sparkline.rs