header | R Documentation |
This creates a header with optional icon using Semantic UI styles.
header(title, description, icon = NULL)
title |
Header title |
description |
Subheader text |
icon |
Optional icon name |
## 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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.