Breadcrumb

Description

Create a trail of links from the top of the site to the current page.

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(). Separators are added between items for you.
label String. Accessible name for the breadcrumb. Defaults to "Breadcrumb".
separator String. The separator icon, "chevron-right" (default) or "dot".
item String. The item's label.
href String. The link URL.
current Bool. Whether this is the current page, shown as text instead of a link. Defaults to FALSE.
icon String. The separator icon, "chevron-right" (default) or "dot".

Value

An htmltools 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")