Learn R Programming

shinyGovstyle (version 0.1.0)

warning_text: Warning Text Function

Description

This function create warning text

Usage

warning_text(inputId, text)

Value

a warning box html shiny object

Arguments

inputId

The input slot that will be used to access the value.

text

Text that goes in the main

Examples

Run this code
if (interactive()) {
  ui <- fluidPage(
    shinyGovstyle::header(
      main_text = "Example",
      secondary_text = "User Examples",
      logo="shinyGovstyle/images/moj_logo.png"),
    shinyGovstyle::gov_layout(size = "two-thirds",
      shinyGovstyle::warning_text(
        inputId = "warn1",
        text = "You can be fined up to £5,000 if you do not register.")
    ),
    shinyGovstyle::footer(full = TRUE)
  )

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

Run the code above in your browser using DataLab