Learn R Programming

shinyWidgets (version 0.3.4)

actionBttn: Awesome action button

Description

Like actionButton but awesome, via https://bttn.surge.sh/

Usage

actionBttn(inputId, label = NULL, icon = NULL, style = "unite",
  color = "default", size = "md", block = FALSE, no_outline = TRUE)

Arguments

inputId

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

label

The contents of the button, usually a text label.

icon

An optional icon to appear on the button.

style

Style of the button, to choose between simple, bordered, minimal, stretch, jelly, gradient, fill, material-circle, material-flat, pill, float, unite.

color

Color of the button : default, primary, warning, danger, success, royal.

size

Size of the button : xs,sm, md, lg.

block

Logical, full width button.

no_outline

Logical, don't show outline when navigating with keyboard/interact using mouse or touch.

Examples

Run this code
# NOT RUN {
if (interactive()) {

 ui <- fluidPage(
  actionBttn(inputId = "id1", label = "Go!", style = "unite")
 )

 server <- function(input, output, session) {

 }

 shinyApp(ui = ui, server = server)

}
# }

Run the code above in your browser using DataLab