gpui-kit GitHub

Components

Kbd builder

A keyboard shortcut, written the way the current platform writes it.

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

use gpui_kit::overlay::Kbd;

Construct

new(keystroke: impl Into<SharedString>) -> Self

Options

Chain onto the value.

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

Queries

Only answer; they change nothing.

caps(cx: &App) -> Vec<SharedString>

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/overlay/kbd.rs