gpui-kit GitHub

Components

EmptyState builder

A centred explanation with an optional action.

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

use gpui_kit::display::EmptyState;

Construct

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

Options

Chain onto the value.

kind(kind: EmptyKind) -> Self
detail(detail: impl Into<SharedString>) -> Self
action(action: impl IntoElement) -> 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/empty.rs