Tabs

Description

Create a set of tabbed panels. The first tab starts selected.

Usage

bc_tabs(
  ...,
  variant = "default",
  orientation = "horizontal",
  id = NULL,
  aria_label = NULL
)

Arguments

Argument Description
... Tabs from bc_tab().
variant String. "default" or "line".
orientation String. "horizontal" (default) or "vertical".
id String. The ID. Defaults to a random ID. With bc_shiny_deps(), input$id is the label of the selected tab when bc_tabs() is given an id.
aria_label String. Accessible name for the tabs, useful when a page has more than one set.

Value

An htmltools tag.

Examples

bc_tabs(
  bc_tab("Account details", label = "Account"),
  bc_tab("Password settings", label = "Password"),
  bc_tab("Not yet", label = "Billing", disabled = TRUE)
)

bc_tabs(
  bc_tab(bc_card(bc_card_body("Usage this month")), label = "Usage"),
  bc_tab(bc_card(bc_card_body("Seats and roles")), label = "Team"),
  variant = "line",
  id = "workspace"
)