| tag_Input | R Documentation |
This function creates a tag.
tag_Input(inputId, text, colour = "navy")
inputId |
The Id to access the tag |
text |
The text in the tag |
colour |
The colour of the tag. Default is navy. Other options are grey, green, teal, blue, purple, magenta, red, orange and yellow |
a tag HTML shiny tag object
Other Govstyle feedback types:
details(),
gov_summary(),
insert_text(),
label_hint(),
noti_banner(),
panel_output(),
value_box(),
warning_text()
ui <- shiny::fluidPage(
shinyGovstyle::header(
org_name = "Example",
service_name = "User Examples",
logo="shinyGovstyle/images/moj_logo.png"
),
shinyGovstyle::gov_layout(
size = "two-thirds",
shinyGovstyle::tag_Input("tag1", "Complete"),
shinyGovstyle::tag_Input("tag2", "Incomplete", "red")
),
shinyGovstyle::footer(full = TRUE)
)
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.