Skip to contents

Applies the package's Bootstrap 5 theme and dark navbar styling, injects the package CSS/JS and shinyjs, adds a light/dark mode toggle and a "Credits" link (software acknowledgements, via the shinyngs_credits modal wired up in configureBookmarking()) to the navbar, and constructs the resulting bslib::page_navbar(). The accent colour is defined once here, on the theme, and everything else (CSS, plots) derives from the resulting Bootstrap variables.

Usage

shinyngsPageNavbar(navbar_menus)

Arguments

navbar_menus

A named list of arguments accepted by bslib::page_navbar() (id, title, window_title, and one or more bslib::nav_panel()/bslib::nav_menu() elements).