Tabs
Description
A tab component with navigation and content panels.
Usage
bc_tabs(
...,
variant = "default",
orientation = "horizontal",
id = NULL,
aria_label = NULL
)
Arguments
| Argument | Description |
|---|---|
... |
List of tabs. Each item should be a list with 'label', 'content', and optionally 'id' and 'disabled'. |
variant |
String. The tab variant ("default" or "line"). |
orientation |
String. The tab orientation ("horizontal" or "vertical"). |
id |
String. The ID for the tabs container. |
aria_label |
String. Accessible name for the tablist, useful when a page has more than one. |
Value
A tag with proper tab structure.
Examples
bc_tabs(
bc_tab("Account details", label = "Account"),
bc_tab("Password settings", label = "Password"),
bc_tab("Not yet", label = "Billing", disabled = TRUE)
)
Account details
Password settings
Not yet
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"
)