if (interactive()) {
shiny::div(actionButton("button",
"Action button with primary color",
icon = shiny::icon("folder"), bg.type = "primary"
))
shiny::div(actionButton("button",
"Action button with primary color",
icon = shiny::icon("file"),
bg.type = "danger", outline = TRUE
))
}
Run the code above in your browser using DataLab