ph_i | R Documentation |
Create a Phosphor icon with font files.
ph_i(
name,
weight = c("light", "regular", "thin", "bold", "fill"),
size = c("lg", "xxs", "xs", "sm", "xl", "1x", "2x", "3x", "4x", "5x", "6x", "7x", "8x",
"9x", "10x"),
color = NULL,
...
)
name |
Name of the icon to use. |
weight |
Weight of icon (from thinnest to thickest): |
size |
Size of icon. |
color |
Color of icon: use valid HTML color or hex code. |
... |
Attributes passed to the |
An HTML tag.
library(phosphoricons)
ph_i("airplane-tilt")
ph_i("airplane-tilt", weight = "thin")
ph_i("airplane-tilt", weight = "bold")
ph_i("house")
ph_i("house", color = "#F45B69")
ph_i("cake")
ph_i("cake", size = "xl")
ph_i("cake", size = "10x")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.