Breadcrumb
Description
A navigation landmark listing the page hierarchy, with separators inserted between items.
Usage
bc_breadcrumb(..., label = "Breadcrumb", separator = "chevron-right")
bc_breadcrumb_item(item, href = NULL, current = FALSE)
bc_breadcrumb_separator(icon = "chevron-right")
Arguments
| Argument | Description |
|---|---|
... |
Items from bc_breadcrumb_item() and bc_breadcrumb_separator(). Separators are added between items automatically. |
label |
String. The landmark's aria-label. |
separator |
String. Separator icon: chevron-right (default) or dot. |
item |
String. The item's label. |
href |
String. Link target. |
current |
Bool. Whether this is the current page. Renders a span with aria-current="page" instead of a link. |
icon |
String. The separator icon: chevron-right or dot. |
Value
A <nav> tag.
Examples
bc_breadcrumb(
bc_breadcrumb_item("Home", href = "#"),
bc_breadcrumb_item("Components", href = "#"),
bc_breadcrumb_item("Breadcrumb", current = TRUE)
)
bc_breadcrumb(
bc_breadcrumb_item("Docs", href = "#"),
bc_breadcrumb_item("Theming", current = TRUE),
separator = "dot"
)
bc_breadcrumb_separator("dot")