text_alignment: Align text

View source: R/text-alignment.R

text_alignmentR Documentation

Align text

Description

The text_alignment() function adjusts how the text within a tag element is aligned.

Usage

text_alignment(x, ...)

Arguments

x

A tag element or .style pronoun.

...

A character string specifying an alignment. One of,

"left", "right", or "center".

Use name-value pairs to specify breakpoints.

Value

An object of the same type as x.

See Also

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

Examples


library(htmltools)

div(
  .style %>%
    text_alignment("left")
)

div(
  .style %>%
    text_alignment("center")
)


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