| label_hint | R Documentation |
This function inserts a label and optional hint.
label_hint(inputId, label, hint_input = NULL)
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
|
label |
Display label for the control, or |
hint_input |
Display hint label for the control, or |
a label hint HTML shiny tag object
Other Govstyle feedback types:
confirmation_panel(),
details(),
gov_summary(),
gov_tag(),
inset_text(),
noti_banner(),
value_box(),
warning_text()
ui <- shinyGovstyle::gov_page(
shinyGovstyle::header(
org_name = "Example",
service_name = "User Examples",
logo="shinyGovstyle/images/moj_logo.png"
),
shinyGovstyle::gov_main_layout(
label_hint(
inputId = "label1",
label = "This is a label",
hint_input = "This is a hint"
),
# Rich content: a link in the hint
label_hint(
inputId = "label2",
label = "Bold label",
hint_input = shiny::tagList(
"See the ",
shinyGovstyle::external_link(
"https://www.gov.uk",
"GOV.UK guidance"
)
)
)
),
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.