nav {bslib} | R Documentation |
Navigation items
Description
Create nav item(s) for use inside nav containers (e.g., navs_tab()
,
navs_bar()
, etc).
Usage
nav(title, ..., value = title, icon = NULL)
nav_menu(title, ..., value = title, icon = NULL, align = c("left", "right"))
nav_content(value, ..., icon = NULL)
nav_item(...)
nav_spacer()
Arguments
title |
A title to display. Can be a character string or UI elements (i.e., tags). |
... |
Depends on the function: |
value |
A character string to assign to the nav item. This value may be
supplied to the relevant container's |
icon |
Optional icon to appear next to the nav item's |
align |
horizontal alignment of the dropdown menu relative to dropdown toggle. |
Value
A nav item that may be passed to a nav container (e.g. navs_tab()
).
Functions
-
nav
: Content to display when the given item is selected. -
nav_menu
: Create a menu of nav items. -
nav_content
: Create nav content for use insidenavs_hidden()
(for creating custom navigation controls vianavs_select()
), -
nav_item
: Place arbitrary content in the navigation panel (e.g., search forms, links to external content, etc.) -
nav_spacer
: Adding spacing between nav items.