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