bezel

Components / Content

Breadcrumb

crates/ui/src/widgets/content.rs

use ui::widgets;

widgets::breadcrumb()
    .child(widgets::breadcrumb_item(&theme, "crates", false))
    .child(widgets::breadcrumb_separator(&theme))
    .child(widgets::breadcrumb_item(&theme, "ui", false))
    .child(widgets::breadcrumb_separator(&theme))
    .child(widgets::breadcrumb_item(&theme, "widgets.rs", true))

The separators are children rather than something the container inserts, because a trail that collapses in the middle — crates / … / widgets.rs — is the caller's decision about its own path, not a rule the container could apply.

A current crumb takes the text tone and drops the pointer cursor. The rest truncate individually, and the container sets min_w_0 so a long path shortens rather than pushing its row wide.

Breadcrumb