text_height: Text height

View source: R/text-height.R

text_heightR Documentation

Text height

Description

The text_height() function adjusts the line height of text within a tag element.

Usage

text_height(x, height)

Arguments

x

A tag element or .style pronoun.

height

A character string specifying a line height. One of,

  • "sm"

  • "small"

  • "base"

  • "lg"

  • "large"

Value

An object of the same type as x.

See Also

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

Examples


library(htmltools)

p(
  .style %>%
    text_height("base"),
  "This is the browser's default line height spacing.",
  "Make sure there are multiple lines of text in a paragraph.",
  "Otherwise, the changes applied by these utilities are not visible."
)


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