Components / Content

Breadcrumb

Markdown crates/ui/src/widgets/content.rs docs.rs

Breadcrumb

Ask your agent

Install the bezel skill once

npx skills add crabtalk/bezel --skill bezel

Then ask

Show the open file's path as a breadcrumb above the editor, each folder clickable to reveal it in the sidebar.
use ui::widgets::Content;

theme
    .breadcrumb()
    .child(theme.breadcrumb_item("crates", false))
    .child(theme.breadcrumb_separator())
    .child(theme.breadcrumb_item("ui", false))
    .child(theme.breadcrumb_separator())
    .child(theme.breadcrumb_item("widgets.rs", true))
  • The caller adds the separators and any click handlers; collapsing a long trail is the caller's too.
  • Mark only the last crumb current.