Overview
HuxBreadcrumbs
displays the navigation trail for the current page. It adapts to light/dark themes and supports icons, sizes, and overflow.
Basic Usage
Variants
HuxBreadcrumbVariant
controls the separator style:
Default
Uses the/
text separator.
Icon
Uses a chevron icon separator.Sizes
Control spacing and typography withHuxBreadcrumbSize
:
Overflow
Collapse long paths with an overflow token.API Reference
HuxBreadcrumbs Properties
Property | Type | Default | Description |
---|---|---|---|
items | List<HuxBreadcrumbItem> | — | Breadcrumbs to render |
variant | HuxBreadcrumbVariant | default_ | Visual style |
size | HuxBreadcrumbSize | medium | Spacing and typography |
maxItems | int? | null | Collapse middle items when exceeded |
overflowIndicator | Widget? | null | Custom widget for overflow token |
HuxBreadcrumbItem
Property | Type | Default | Description |
---|---|---|---|
label | String | — | Text label |
onTap | VoidCallback | — | Called when item is tapped |
icon | IconData? | null | Optional leading icon |
isDisabled | bool | false | Non-interactive appearance |
isActive | bool | false | Marks the current page |
Accessibility
- Items are accessible via semantics and keyboard focus
- Active item is visually distinguished; disabled items announce properly