components/breadcrumb
Display · 27 / 64

Breadcrumb

ui.widgets.Breadcrumb

Shows the current location and its ancestors.

BEHAVIOR CONTRACT

Separators, current item, clickable items and truncation stay readable.

RECORDED INTERACTION

Shows Home / Library / Data.

examples/storybook/stories.zig:691
// ── Breadcrumb ──
pub fn buildBreadcrumb(scope: *ui.Scope, cx: *ui.Cx) anyerror!*ui.Node {
    const items = [_]W.BreadcrumbItem{
        .{ .id = "home", .label_text = "Home" },
        .{ .id = "lib", .label_text = "Library" },
        .{ .id = "data", .label_text = "Data" },
    };
    return W.Breadcrumb(.{ .items = &items }).mount(scope, cx);
}
View source on GitHubexamples/storybook/stories.zig:691

The story's verbatim source from the Storybook (zenit 4c50245 2026-10-01). W is ui.widgets; col / row / label are small Storybook layout helpers.

zenit · Dual-licensedFree for open-source projects under GPL-3.0-only; closed-source or commercial products need a commercial license.Contact the author: zongyi.xzy#gmail.com (replace # with @)zenit 4c50245 2026-10-01