Creates a br-tab navigation with content panels. The GovBR
JavaScript handles switching panels; the first tab is active initially.
input$<inputId> returns the index (1-based) of the active tab;
use update_br_tabs() to change it from the server.
Usage
br_tabs(inputId, titles, ..., panels = list(...), icons = NULL)Examples
if (interactive()) {
ui <- shiny::fluidPage(
use_govbr(),
shinyGovBRstyle::br_layout(
shinyGovBRstyle::br_tabs(
inputId = "abas",
titles = c("Dados", "Gr\u00e1ficos"),
panels = list(
shiny::p("Conte\u00fado dos dados."),
shiny::p("Conte\u00fado dos gr\u00e1ficos.")
)
)
)
)
server <- function(input, output, session) {}
shinyApp(ui = ui, server = server)
}
