Pagination

Description

A set of page controls built from the Button classes in a nav landmark.

Usage

bc_pagination(..., label = "pagination")

bc_pagination_item(item, href = "#", current = FALSE, ...)

bc_pagination_ellipsis()

bc_pagination_previous(label = "Previous", href = "#")

bc_pagination_next(label = "Next", href = "#")

Arguments

Argument Description
... The pagination items as <li> tags, from the item helpers.
label String. The navigation landmark's aria-label.
item String. The page label.
href String. The link target.
current Bool. Whether this is the current page. Renders as the outline variant.

Value

A <nav> tag.

Examples

bc_pagination(
  bc_pagination_previous(),
  bc_pagination_item("1", href = "#"),
  bc_pagination_item("2", href = "#", current = TRUE),
  bc_pagination_item("3", href = "#"),
  bc_pagination_ellipsis(),
  bc_pagination_next()
)