A dashboard sidebar typically contains a sidebarMenu, although it may also contain a sidebarSearchForm, or other Shiny inputs.

dashboardSidebar(
  ...,
  id = NULL,
  disable = FALSE,
  width = NULL,
  collapsed = FALSE,
  minified = TRUE
)

Arguments

...

Items to put in the sidebar.

id

Sidebar input id. Returns the current state of the sidebar.

disable

If TRUE, the sidebar will be disabled.

width

The width of the sidebar. This must either be a number which specifies the width in pixels, or a string that specifies the width in CSS units.

collapsed

If TRUE, the sidebar will be collapsed on app startup.

minified

Whether to slightly close the sidebar but still show item icons. Default to TRUE.