Skip to content

Commit

Permalink
docs: Update navset examples
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Nov 26, 2024
1 parent 8abc2b7 commit 388720b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions man/fragments/ex-navset_tab.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,15 @@ navset_pill_list(
Finally, `page_navbar()` provides full-page navigation container
similar to `navset_underline()` but where each `nav_panel()` is treated as a full page of content
and the navigation controls appear in a top-level navigation bar.
Note also that the underline styling can be removed via the `underline` argument.
Note also that the navbar background and underline styling can be controlled via `navbar_options`.

```{r page_navbar, fig.width=10}
page_navbar(
title = "My App",
bg = "#0062cc",
underline = TRUE,
navbar_options = navbar_options(
bg = "#0062cc",
underline = TRUE
),
nav_panel(title = "One", p("First tab content.")),
nav_panel(title = "Two", p("Second tab content.")),
nav_panel(title = "Three", p("Third tab content")),
Expand Down
8 changes: 5 additions & 3 deletions man/navset.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 388720b

Please sign in to comment.