heading_text: Heading Text Function

View source: R/heading_text.R

heading_textR Documentation

Heading Text Function

Description

This function create a heading text

Usage

heading_text(text_input, size = "xl")

Arguments

text_input

Text to display

size

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

Value

a heading text html shiny object

Examples

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::heading_text("This is great text", "m")
    ),
    shinyGovstyle::footer(full = TRUE)
  )

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

shinyGovstyle documentation built on March 18, 2022, 7:24 p.m.