insert_text() was renamed to inset_text() in shinyGovstyle 0.3.0 to
match the name of the GOV.UK Design System component. It will be removed in
shinyGovstyle 1.0.0.
Usage
insert_text(inputId, content, text = lifecycle::deprecated())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>.- content
Content to display in the inset. Accepts a plain character string, or
shinytag objects such asshiny::tags$b("Bold")or ashiny::tagList().- text
Examples
# Before
# insert_text(inputId = "note", content = "Some supporting text")
# After
inset_text(inputId = "note", content = "Some supporting text")
#> <div id="note" class="govuk-inset-text">Some supporting text</div>
