| banner | R Documentation |
banner() was renamed to phase_banner() in shinyGovstyle 0.3.0 to match
the name of the GOV.UK Design System component. The arguments and output
are unchanged. banner() will be removed in shinyGovstyle 1.0.0.
banner(inputId, type, label = NULL, feedback_url = NULL, width = "standard")
inputId |
The id assigned to the component's root element. For Shiny
input components this is also the name used to access the value via
|
type |
Main type of label e.g. alpha or beta. Can be any word |
label |
Text to display. Accepts a plain character string, or |
feedback_url |
Optional URL used to auto-generate the standard GOV.UK
phase banner feedback text, e.g. "This is a new service - your feedback
(opens in new tab) will help us to improve it.", with |
width |
Width of the component. One of |
a phase banner HTML shiny tag object
# Before
# banner("banner", "Beta", "This is a new service")
# After
phase_banner("banner", "Beta", "This is a new service")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.