Skip to contents

This function createS heading text

Usage

heading_text(text_input, size = "xl", id)

Arguments

text_input

Text to display

size

Text size using xl, l, m, s. Defaults to xl

id

Custom header id

Value

a heading text html shiny object

Examples

ui <- shiny::fluidPage(
  shinyGovstyle::header(
    main_text = "Example",
    secondary_text = "User Examples",
    logo="shinyGovstyle/images/moj_logo.png"
  ),
  shinyGovstyle::gov_layout(
    size = "two-thirds",
    shinyGovstyle::heading_text("This is great text", "m")
  ),
  shinyGovstyle::footer(full = TRUE)
)
#> Warning: Please use logo_alt_text to provide alternative text for the logo you used.

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