button: Create Semantic UI Button

Description Usage Arguments Examples

View source: R/button.R

Description

Create Semantic UI Button

Usage

1
button(input_id, label, icon = NULL, class = NULL, ...)

Arguments

input_id

The input slot that will be used to access the value.

label

The contents of the button or link

icon

An optional icon() to appear on the button.

class

An optional attribute to be added to the button's class. If used paramters like color, size are ignored.

...

Named attributes to be applied to the button

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
if (interactive()){
library(shiny)
library(shiny.semantic)
ui <- semanticPage(
  shinyUI(
    button("simple_button", "Press Me!")
  )
)
server <- function(input, output, session) {
}
shinyApp(ui, server)
}

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