Description Usage Arguments Examples
This creates a fields tag using Semantic UI styles.
1 |
... |
Other arguments to be added as attributes of the tag (e.g. style, class or childrens etc.) |
class |
Additional classes to add to html tag. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Only run examples in interactive R sessions
if (interactive()){
library(shiny)
library(shiny.semantic)
ui <- shinyUI(semanticPage(
form(
fields(class = "two",
field(
tags$label("Name"),
text_input("name", value = "", type = "text", placeholder = "Enter Name...")
),
field(
tags$label("Surname"),
text_input("surname", value = "", type = "text", placeholder = "Enter Surname...")
))
)
))
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.