tag_Input: Tag input (deprecated)

tag_InputR Documentation

Tag input (deprecated)

Description

[Deprecated]

tag_Input() was renamed to gov_tag() in shinyGovstyle 0.3.0. The tag is a display component rather than a Shiny input, so the ⁠_Input⁠ suffix was misleading. The arguments and output are unchanged. tag_Input() will be removed in shinyGovstyle 1.0.0.

Usage

tag_Input(inputId, text, colour = "navy")

Arguments

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 ⁠input$<inputId>⁠.

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. Any other value gives a warning listing these options

Value

a tag HTML shiny tag object

Examples

# Before
# tag_Input("tag1", "Complete")

# After
gov_tag("tag1", "Complete")

shinyGovstyle documentation built on Oct. 16, 2026, 1:07 a.m.