Breadcrumb Bar
A horizontal breadcrumb navigation bar with Miuix style. Displays a trail of path segments as capsule-shaped items separated by arrow icons. When the content overflows the available width, it scrolls horizontally instead of collapsing — matching the file-manager convention on mobile devices.
The highlightIndex is decoupled from the items list: the caller may show the full path while highlighting any segment (e.g. the current directory or a parent the user navigated back to).
Parameters
The list of BreadcrumbItems to display.
Callback invoked with the index of the clicked item.
The modifier to be applied to the BreadcrumbBar.
The index of the highlighted item. Defaults to the last item. Pass a negative value (e.g. -1) to disable highlighting and auto-scroll entirely.
Whether the items are clickable. When disabled, items use the disabled color scheme but horizontal scrolling remains active.
The BreadcrumbBarColors of the BreadcrumbBar.
The margin inside the BreadcrumbBar.
The maximum width of each capsule-shaped item. Text beyond this is truncated.
The ScrollState to be used for horizontal scrolling. If null, an internal state is created. Pass an externally hoisted state to preserve scroll position across recompositions.
The MutableInteractionSource to be used for the items.
The Indication to be used for click interactions.