text_decoration: Text decoration

View source: R/text-decoration.R

text_decorationR Documentation

Text decoration

Description

The text_dectoration() function adjusts how text is decorated within a tag element.

Usage

text_decoration(x, decoration)

Arguments

x

A tag element or .style pronoun.

decoration

A character string specifying a decoration. One of,

  • "underline"

  • "strike"

  • "none"

Value

An object of the same type as x.

See Also

Other text utilities: text_alignment(), text_break(), text_color(), text_height(), text_selection(), text_style(), text_transform(), text_weight(), text_wrap()

Examples


library(htmltools)

div(
  .style %>%
    text_decoration("strike"),
  "TODO: buy milk"
)

div(
  .style %>%
    text_emphasis(theme_danger()) %>%
    text_decoration("underline"),
  "Red AND underlined!"
)


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