Skip to contents

Create a breadcrumb navigation trail.

Usage

ds_breadcrumbs(..., class = NULL)

Arguments

...

Child elements (typically list items with links)

class

Additional CSS classes

Value

A Shiny tag object

Examples

ds_breadcrumbs(
  htmltools::tags$ol(
    htmltools::tags$li(ds_link("Home", href = "/")),
    htmltools::tags$li(ds_link("Products", href = "/products")),
    htmltools::tags$li(htmltools::tags$span("Current Page"))
  )
)
#> <ds-breadcrumbs class="ds-breadcrumbs">
#>   <ol>
#>     <li>
#>       <a class="ds-link" href="/">Home</a>
#>     </li>
#>     <li>
#>       <a class="ds-link" href="/products">Products</a>
#>     </li>
#>     <li>
#>       <span>Current Page</span>
#>     </li>
#>   </ol>
#> </ds-breadcrumbs>