ph | R Documentation |
Create a <svg></svg>
tag to render an icon.
ph(
name,
weight = c("light", "regular", "thin", "bold", "fill"),
fill = "currentColor",
rotate = NULL,
height = "1.33em",
width = NULL,
vertical_align = "-0.25em",
title = name,
...
)
name |
Name of the icon to use. |
weight |
Weight of icon (from thinnest to thickest): |
fill |
Fill color for the icon, default is |
rotate |
Numeric, angle to rotate the icon. |
height , width |
Height and width in valid CSS unit. |
vertical_align |
Vertical alignment for the icon, this depend on the size of the icon. |
title |
Add a |
... |
Attributes passed to the SVG tag. |
An SVG tag.
library(phosphoricons)
ph("airplane-tilt")
ph("airplane-tilt", weight = "thin")
ph("airplane-tilt", weight = "bold")
ph("house")
ph("house", fill = "#F45B69")
ph("cake", rotate = 45)
ph("airplane-tilt", height = 128)
ph("airplane-tilt", height = 128, weight = "fill")
ph("airplane-tilt", height = 128, weight = "fill", fill = "steelblue")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.