| header | R Documentation |
This function create a header banner. For use at top of the screen
header(
org_name = "Shiny example app",
service_name = NULL,
logo = "shinyGovstyle/images/Dept_logo.svg",
main_text = lifecycle::deprecated(),
secondary_text = lifecycle::deprecated(),
main_link = NULL,
secondary_link = NULL,
logo_alt_text = "Departmental logo",
main_alt_text = NULL,
secondary_alt_text = NULL,
logo_width = 66,
logo_height = 34
)
a header HTML shiny tag object
Other Govstyle page structure:
banner(),
cookieBanner(),
footer(),
gov_layout(),
layouts,
skip_to_main()
ui <- shiny::fluidPage(
shinyGovstyle::header(
org_name = "Example",
service_name = "User Examples",
logo = "shinyGovstyle/images/moj_logo.png",
logo_alt_text = "Ministry of Justice Logo"
)
)
server <- function(input, output, session) {}
if (interactive()) shinyApp(ui = ui, server = server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.