This function creates a notification banner.
Arguments
- inputId
The input Id for the banner
- title_txt
The wording that appears in the title
- body_txt
The wording that appears in the banner body. Accepts a plain character string, or
shinytag objects such asshiny::tags$b("Bold")or ashiny::tagList().- type
The type of banner. Options are standard and success. Standard is default
See also
Other Govstyle feedback types:
details(),
gov_summary(),
insert_text(),
label_hint(),
panel_output(),
tag_Input(),
value_box(),
warning_text()
Examples
ui <- shiny::fluidPage(
shinyGovstyle::header(
org_name = "Example",
service_name = "User Examples",
logo="shinyGovstyle/images/moj_logo.png"
),
shinyGovstyle::noti_banner(
inputId = "banner", title_txt = "Important", body_txt = "Example text"
)
)
server <- function(input, output, session) {}
if (interactive()) shinyApp(ui = ui, server = server)
