← Back to Components
Breadcrumb
Page-shell breadcrumb trail with aria-current page entry and collapsible middle.
Interactive Playground
R Code
API Reference
block_breadcrumb()
Static page-shell breadcrumb trail rendered as a nav[aria-label='breadcrumb'] landmark.
| Argument | Type | Default | Description |
|---|---|---|---|
| ... | tags | required | block_breadcrumb_item() and block_breadcrumb_ellipsis() entries; separators are inserted automatically. |
| separator | character | tag | NULL | Separator between entries (string or tag); defaults to a chevron icon, hidden from assistive technology. |
| style | character | NULL | Inline CSS styles for the nav container. |
| class | character | NULL | Additional classes for the nav container. |
block_breadcrumb_item()
One breadcrumb entry: a link, plain text, or the aria-current page marker.
| Argument | Type | Default | Description |
|---|---|---|---|
| label | character | tag | required | Entry label. |
| href | character | NULL | Destination URL; renders an anchor. Ignored when current = TRUE. |
| current | logical | FALSE | Marks the current page: non-interactive span with aria-current='page'. |
| class | character | NULL | Additional classes for the list entry. |
block_breadcrumb_ellipsis()
Collapsed-middle marker for long trails: decorative glyph plus visually hidden label.
| Argument | Type | Default | Description |
|---|---|---|---|
| label | character | 'More' | Visually hidden text announced to assistive technology. |
| class | character | NULL | Additional classes for the list entry. |