gpui-kit GitHub

Components

MessageList builder

A conversation.

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

use gpui_kit::content::MessageList;

Construct

new(ident: impl Into<Ident>, messages: impl IntoIterator<Item = Message>) -> Self

Options

Chain onto the value.

visible_rows(rows: usize) -> Self
body_lines(lines: usize) -> Self
group_consecutive(group: bool) -> Self
on_retry(handler: impl Fn(SharedString, &mut Window, &mut App) + 'static) -> Self
on_markdown(handler: impl Fn(SharedString, &MarkdownEvent, &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/content/message_list.rs