Skip to contents

A bslib sidebar layout that arranges the four standard dashboard slots. The title argument, when set, replaces the title text inside header if dashboardHeader() was called without one.

Usage

dashboardPage(
  header,
  sidebar,
  body,
  title = NULL,
  footer = NULL,
  theme = brand_bs_theme()
)

Arguments

header

Slot for dashboardHeader().

sidebar

Slot for dashboardSidebar().

body

Slot for dashboardBody().

title

Page/app title shown in the browser tab and dashboard header.

Optional slot for dashboardFooter().

theme

A bslib theme. Defaults to brand_bs_theme().

Value

A Shiny UI definition.

Examples

ui <- dashboardPage(
  header = dashboardHeader(title = "bslibdash dashboard"),
  sidebar = dashboardSidebar(
    sidebarMenu(
      id = "sidebarMenu",
      menuItem("Overview", tabName = "overview")
    )
  ),
  body = dashboardBody(
    tabItems(
      tabItem(
        tabName = "overview",
        box("Overview content", title = "Overview")
      )
    )
  )
)