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().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
bslibtheme. Defaults tobrand_bs_theme().
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")
)
)
)
)
