This function create warning text.
Arguments
- inputId
The input slot that will be used to access the value
- text
Text that goes in the main. Accepts a plain character string, or
shinytag objects such asshiny::tags$b("Bold")or ashiny::tagList().
See also
Other Govstyle feedback types:
details(),
gov_summary(),
insert_text(),
label_hint(),
noti_banner(),
panel_output(),
tag_Input(),
value_box()
Examples
shinyGovstyle::warning_text(
inputId = "warn1",
text = "You can be fined up to £5,000 if you do not register."
)
#> <div class="govuk-warning-text" id="warn1">
#> <span class="govuk-warning-text__icon" aria-hidden="true">!</span>
#> <strong class="govuk-warning-text__text">
#> You can be fined up to £5,000 if you do not register.
#> <span class="govuk-visually-hidden">Warning</span>
#> </strong>
#> </div>
