Create a bulma button.

bulmaButton(
  ...,
  color = NULL,
  style = NULL,
  class = NULL,
  rounded = FALSE,
  size = NULL,
  display = NULL,
  tag = shiny::tags$a
)

Arguments

...

button content.

color

a valid bulma color, i.e.: white, or primary.

style

can be set to either interted or outlined.

class

additional CSS classes.

rounded

set to TRUE for a rounded button.

size

size of button, small, medium, or large.

display

can be set to fullwidth.

tag

shiny tag to use.

Examples

if(interactive()){
  library(shiny)
  
  ui <- bulmaPage(
    bulmaContainer(
      bulmaButton(
        "Button",
        color = "info",
        rounded = TRUE
      ),
      bulmaButton(
        "Outline",
        style = "outlined"
      )
    )
  )
  
  server <- function(input, output){}
  
  shinyApp(ui, server)
}