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>) -> SelfOptions
Chain onto the value.
kind(kind: EmptyKind) -> Self
detail(detail: impl Into<SharedString>) -> Self
action(action: impl IntoElement) -> SelfRendered by
Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.