label_hint: Label with Hint Function

View source: R/label_hint.R

label_hintR Documentation

Label with Hint Function

Description

This function inserts a label and optional hint.

Usage

label_hint(inputId, label, hint_input = NULL)

Arguments

inputId

The input slot that will be used to access the value

label

Display label for the control, or NULL for no label

hint_input

Display hint label for the control, or NULL for no hint label

Value

a label hint HTML shiny tag object

See Also

Other Govstyle feedback types: details(), gov_summary(), insert_text(), noti_banner(), 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::gov_layout(
    size = "two-thirds",
    label_hint(
      inputId = "label1",
      label = "This is a label",
      hint_input = "This is a hint"
    )
  ),
  shinyGovstyle::footer(full = TRUE)
)

server <- function(input, output, session) {}
if (interactive()) shinyApp(ui = ui, server = server)

shinyGovstyle documentation built on April 13, 2026, 5:06 p.m.