gpui-kit GitHub

Components

BulkBar builder

The bar that appears over a selection, says how large it is, and offers what can be done to it.

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

use gpui_kit::data::BulkBar;

Construct

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

Options

Chain onto the value.

total(total: usize) -> Self
noun(noun: impl Into<SharedString>) -> Self
action(action: impl IntoElement) -> Self
on_select_all(handler: impl Fn(&mut Window, &mut App) + 'static) -> Self
on_dismiss(handler: impl Fn(&mut Window, &mut App) + 'static) -> 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/data/grid.rs