gpui-kit GitHub

Components

Card builder

A raised panel that groups related rows or content.

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

use gpui_kit::display::Card;

Construct

new() -> Self

Options

Chain onto the value.

id(ident: impl Into<Ident>) -> Self
padded(padded: bool) -> Self
on_click(handler: impl Fn(&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/card.rs