A VS Code-inspired navigation page
page_bscode.RdCreates a screen-filling bslib page whose navigation is displayed as either a compact activity bar or a wider sidebar with icons and labels.
Usage
page_bscode(
...,
header = NULL,
title = NULL,
id = NULL,
selected = NULL,
position = c("left", "right"),
nav_mode = c("activity", "sidebar"),
nav_width = "240px",
size = "md",
fillable = TRUE,
fillable_mobile = TRUE,
tooltip_placement = "auto",
theme = bslib::bs_theme(primary = "#007ACC"),
brand = NULL,
lang = NULL
)Arguments
- ...
Navigation items created by
bslib::nav_panel()orbslib::nav_spacer().- header
Optional UI displayed above every navigation panel.
- title
Window title and source of the default brand.
- id
Navigation input ID, compatible with
bslib::nav_select().- selected
Value of the initially selected panel.
- position
Navigation position:
"left"or"right".Navigation presentation:
"activity"for icons only or"sidebar"for icons and labels.Width of the navigation when
nav_mode = "sidebar".- size
Navigation item size:
"sm","md","lg", or"xl".- fillable
Logical value or panel values that should fill the viewport.
- fillable_mobile
Whether the layout fills the viewport on narrow screens.
- tooltip_placement
Tooltip placement in activity mode,
"auto", orNULLto disable.- theme
A
bslib::bs_theme()object.- brand
Optional UI for the top of the navigation. By default, activity mode uses the first letter of
titleand sidebar mode uses the full title.- lang
Page language.