Skip to contents

A full-height page whose top bar carries a shad_tabs() strip: the standard "app with a handful of top-level views" shell. input$<inputId> is the active tab value; switch it from the server with update_shad_tabs().

Usage

shad_page_navbar(
  ...,
  inputId = "navbar",
  title = NULL,
  selected = NULL,
  header_end = NULL,
  container = TRUE,
  page_title = title,
  theme_preset = NULL,
  dark = NULL,
  theme = NULL,
  lang = "en"
)

Arguments

...

One or more shad_tab(), or named HTML attributes for the scope container.

inputId

Input id for the tab set.

title

Optional brand/title shown at the start of the bar.

selected

Initially active tab value (defaults to the first tab).

header_end

Optional content pinned to the end of the bar.

container

If TRUE (default), wrap each panel's content in a shad_container(). Pass a list of arguments to configure it, or FALSE.

page_title, theme_preset, dark, theme, lang

Passed to page_shad().

Value

A page UI object.

Examples

if (interactive()) {
  shiny::shinyApp(
    shad_page_navbar(
      shad_tab("home", "Home", shad_p("Home panel")),
      shad_tab("about", "About", shad_p("About panel")),
      title = "Acme"
    ),
    function(input, output, session) {}
  )
}