Breadcrumb builder
A trail of crumbs, collapsed in the middle when it grows too long.
A builder is RenderOnce. Construct and mount it in one expression.
use gpui_kit::navigation::Breadcrumb;
Construct
new(ident: impl Into<Ident>) -> SelfOptions
Chain onto the value.
crumb(crumb: Crumb) -> Self
crumbs(crumbs: impl IntoIterator<Item = Crumb>) -> Self
max_visible(max_visible: usize) -> Self
on_select(handler: impl Fn(SharedString, &mut Window, &mut App) + 'static) -> Self
on_reveal(handler: impl Fn(Vec<SharedString>, &mut Window, &mut App) + 'static) -> SelfRendered by
Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.