gpui-kit GitHub

Components

Tooltip builder

A themed help surface.

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

use gpui_kit::overlay::Tooltip;

Construct

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

Options

Chain onto the value.

describes(control: impl Into<SharedString>) -> Self
view(cx: &mut App) -> AnyView

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/tooltip.rs