gpui-kit GitHub

Components

UploadList builder

A list of files being uploaded, optionally over the zone that took them.

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

use gpui_kit::controls::UploadList;

Construct

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

Options

Chain onto the value.

upload(upload: Upload) -> Self
uploads(uploads: impl IntoIterator<Item = Upload>) -> Self
dropzone(zone: Dropzone) -> Self
show_overall(show: bool) -> Self
on_retry(handler: impl Fn(SharedString, &mut Window, &mut App) + 'static) -> Self
on_cancel(handler: impl Fn(SharedString, &mut Window, &mut App) + 'static) -> Self
on_remove(handler: impl Fn(SharedString, &mut Window, &mut App) + 'static) -> Self

Queries

Only answer; they change nothing.

overall() -> OverallProgress

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