text_weight {cascadess} | R Documentation |
Text weight
Description
The text_weight()
function adjusts the font weight of a tag element.
Usage
text_weight(x, weight)
Arguments
x |
A tag element or .style pronoun. |
weight |
A character string specifying the font weight. One of,
|
Value
An object of the same type as x
.
See Also
Other text utilities:
text_alignment()
,
text_break()
,
text_color()
,
text_decoration()
,
text_height()
,
text_selection()
,
text_style()
,
text_transform()
,
text_wrap()
Examples
library(htmltools)
p(
.style %>%
text_weight("bold"),
"Bold"
)
p(
.style %>%
text_weight("light"),
"Light"
)
[Package cascadess version 0.2.0 Index]