gpui-kit GitHub

Components

DescriptionList builder

A list of term and description pairs, in one or two columns.

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

use gpui_kit::display::DescriptionList;

Construct

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

Options

Chain onto the value.

item(item: DescriptionItem) -> Self
items(items: impl IntoIterator<Item = DescriptionItem>) -> Self
columns(columns: usize) -> Self
on_copy(handler: impl Fn(SharedString, &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/display/description_list.rs