text_style {cascadess}R Documentation

Text style

Description

The text_style() function adjusts the style of text in a tag element.

Usage

text_style(x, style)

Arguments

x

A tag element or .style pronoun.

style

A character string specifying the text style. One of,

  • "italic"

  • "normal"

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_transform(), text_weight(), text_wrap()

Examples


library(htmltools)

p(
  .style %>%
    text_style("italic"),
  "Italic text"
)

p(
  .style %>%
    text_style("normal"),
  "Normal text"
)


[Package cascadess version 0.2.0 Index]