bulmaButton: Button

Description Usage Arguments Examples

View source: R/bulma-button.R

Description

Create a bulma button.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
if(interactive()){
  library(shiny)
  
  ui <- bulmaPage(
    bulmaContainer(
      bulmaButton(
        "Button",
        color = "info",
        rounded = TRUE
      ),
      bulmaButton(
        "Outline",
        style = "outlined"
      )
    )
  )
  
  server <- function(input, output){}
  
  shinyApp(ui, server)
}

JohnCoene/shinybulma documentation built on Oct. 17, 2020, 8:57 p.m.