bulma_icon: Bulma Icon

Description Usage Arguments Functions See Also

View source: R/bulma-icon.R

Description

Bulma is compatible with all icon font libraries: Font Awesome 5, Font Awesome 4, Material Design Icons, Ionicons, etc.

The icon element is a container for any type of icon font. Because the icons can take a few seconds to load, and because you want control over the space the icons will take, you can use the icon class as a reliable square container that will prevent the page to "jump" on page load.

Icon

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
bulma_icon(
  icon,
  ...,
  stack = NULL,
  size = c("small", "normal", "medium", "large"),
  color = c("primary", "link", "info", "success", "warning", "danger", "white",
    "black", "light", "dark", "black-bis", "black-ter", "grey-darker", "grey-dark",
    "grey-light", "grey-lighter", "white-ter", "white-bis"),
  tag = tags$span
)

bulma_icon_text(
  ...,
  color = c("primary", "link", "info", "success", "warning", "danger", "white",
    "black", "light", "dark", "black-bis", "black-ter", "grey-darker", "grey-dark",
    "grey-light", "grey-lighter", "white-ter", "white-bis"),
  inline = TRUE
)

Arguments

icon

(string) icon class for the relevant font collection

...

(tags) content

stack

(str) if this is a stack, the class of the stakc

size, color

style parameters

tag

(fn) default HTML tag

inline

(flag) the icon with text is inline or not

Functions

See Also

Other Bulma Elements: bulma_block(), bulma_box(), bulma_button(), bulma_content(), bulma_image(), bulma_notification(), bulma_progress_bar(), bulma_table(), bulma_tag(), bulma_title()


tjpalanca/bulma.R documentation built on Dec. 23, 2021, 10:58 a.m.