text_style: Text style

View source: R/text-style.R

text_styleR 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"
)


cascadess documentation built on Oct. 30, 2024, 9:29 a.m.