gpui-kit GitHub

Components

ButtonGroup builder

Adjacent related actions sharing one frame.

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

use gpui_kit::controls::ButtonGroup;

Construct

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

Options

Chain onto the value.

child(button: Button) -> Self
children(buttons: impl IntoIterator<Item = Button>) -> 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/controls/button.rs