navbar_options | R Documentation |
A navbar_options()
object captures options specific to the appearance and
behavior of the navbar, independent from the content displayed on the page.
This helper should be used to create the list of options expected by
navbar_options
in page_navbar()
and navset_bar()
.
navbar_options(
...,
position = c("static-top", "fixed-top", "fixed-bottom"),
bg = NULL,
inverse = "auto",
collapsible = TRUE,
underline = TRUE
)
... |
Additional arguments are ignored. |
position |
Determines whether the navbar should be displayed at the top
of the page with normal scrolling behavior ( |
bg |
a CSS color to use for the navbar's background color. |
inverse |
Either |
collapsible |
|
underline |
Whether or not to add underline styling to page or navbar links when active or focused. |
This function was introduced in bslib v0.9.0, replacing the position
,
bg
, inverse
, collapsible
and underline
arguments of page_navbar()
and navset_bar()
. Those arguments are deprecated with a warning and will be
removed in a future version of bslib.
Returns a list of navbar options.
navbar_options(position = "static-top", bg = "#2e9f7d", underline = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.