navbar | R Documentation |
Add a navigation bar to your application with navbar()
. Navigation bars may
include a tab toggle (useful for multi-page applications), inline forms
(perhaps a search feature or login item), or character strings to add simple
text. Navbars are responsive and will collapse on small screens, think mobile
device. A button is automatically added to toggle between the collapsed and
expanded states.
navbar(..., brand = NULL, collapse = NULL)
... |
A tab toggle, inline forms, or text to add to include as part of the navigation bar. |
brand |
A tag element or text placed on the left end of the navbar,
defaults to |
collapse |
One of |
div( navbar( brand = "Navbar", navInput( .style %>% margin(right = "auto"), id = NULL, choices = c("Home", "About", "Our process") ), formInput( inline = TRUE, id = NULL, textInput( .style %>% margin(right = c(sm = 2)), type = "search", id = NULL, placeholder = "Search" ), formSubmit( .style %>% background("primary"), label = "Search", value = "search" ) ) ), container( p(". . .") ) )
. . .
Other layout functions:
column()
,
fieldset()
,
webpage()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.