banner: Banner Function

View source: R/banner.R

bannerR Documentation

Description

This function create a detail component that you can click for further details.

Usage

banner(inputId, type, label)

Arguments

The input slot that will be used to access the value.

Main type of label e.g. alpha or beta. Can be any word.

test to display.

Value

a banner html shiny object

Examples

if (interactive()) {

  ui <- fluidPage(
    shinyGovstyle::header(
      main_text = "Example",
      secondary_text = "User Examples",
      logo="shinyGovstyle/images/moj_logo.png"),
    shinyGovstyle::banner(
      inputId = "banner", type = "Beta", 'This is a new service')
  )

  server <- function(input, output, session) {}

  shinyApp(ui = ui, server = server)
}

shinyGovstyle documentation built on Sept. 12, 2024, 5:07 p.m.