navPieces: Building blocks of the navigation bar

navPiecesR Documentation

Description

UINav() puts these together for you. They're exported so you can build a custom page from the same pieces.

Usage

navPadding()

navBar(..., barColor = NULL)

navDarkSwitch(mode = "dark")

navItem(...)

Arguments

...

Contents: tabs for navBar(), anything for navItem().

barColor

Background color of the bar. NULL uses the theme's default.

mode

Starting mode for the switch: "dark" or "light".

Details

  • navPadding(): a small spacer above the navigation bar.

  • navBar(): the navigation bar itself, with the ID "root".

  • navDarkSwitch(): the light/dark mode switch.

  • navItem(): wraps anything (an image, a heading, a link) so it can sit in the navigation bar or a tab strip without being a tab.

Value

A 'shiny' tag or 'bslib' navigation object.

Examples

navItem(shiny::strong("Version 1.0"))
navDarkSwitch("light")

EZRShiny documentation built on Oct. 10, 2026, 5:08 p.m.