Tab Panel

Description

Create one tab and its panel, for bc_tabs().

Usage

bc_tab(..., id = NULL, label, disabled = FALSE)

Arguments

Argument Description
... Panel content.
id String. Not used. bc_tabs() sets the panel IDs from its own id.
label String. The tab's label.
disabled Bool. Whether the tab is disabled. Defaults to FALSE.

Value

A list for bc_tabs().

Examples

bc_tab("Account details", label = "Account")
#> $id
#> NULL
#> 
#> $label
#> [1] "Account"
#> 
#> $content
#> Account details
#> 
#> $disabled
#> [1] FALSE

bc_tab(
  htmltools::p("Nothing to bill yet."),
  label = "Billing",
  disabled = TRUE
)
#> $id
#> NULL
#> 
#> $label
#> [1] "Billing"
#> 
#> $content
#> <p>Nothing to bill yet.</p>
#> 
#> $disabled
#> [1] TRUE