bulmaIcon: Icons

Description Usage Arguments Examples

View source: R/bulma-icon.R

Description

Add icons.

Usage

1
bulmaIcon(icon, color = NULL, size = NULL)

Arguments

icon

Fontawesome icon class.

color

color of icon.

size

size of icon.

Examples

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

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