header: Create Semantic UI header

Description Usage Arguments Examples

View source: R/dsl.R

Description

This creates a header with optional icon using Semantic UI styles.

Usage

1
header(title, description, icon = NULL)

Arguments

title

Header title

description

Subheader text

icon

Optional icon name

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Only run examples in interactive R sessions
if (interactive()){
  library(shiny)
  library(shiny.semantic)

  ui <- shinyUI(semanticPage(
    header(title = "Header with description", description = "Description"),
    header(title = "Header with icon", description = "Description", icon = "dog")
  ))
  server <- shinyServer(function(input, output) {
  })

  shinyApp(ui, server)
}

shiny.semantic documentation built on Nov. 7, 2021, 5:07 p.m.