warning_text: Warning Text Function

View source: R/warning_text.R

warning_textR Documentation

Warning Text Function

Description

This function create warning text.

Usage

warning_text(inputId, text)

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

Text that goes in the main. Accepts a plain character string, or shiny tag objects such as shiny::tags$b("Bold") or a shiny::tagList().

Value

a warning box HTML shiny tag object

See Also

Other Govstyle feedback types: confirmation_panel(), details(), gov_summary(), gov_tag(), inset_text(), label_hint(), noti_banner(), value_box()

Examples

shinyGovstyle::warning_text(
  inputId = "warn1",
  text = "You can be fined up to £5,000 if you do not register."
)

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