Description Usage Arguments Colors Examples
The text()
function adjusts the text color, alignment, line spacing, line
wrapping, line height, and decoration of a tag element.
1 2 3 4 5 6 7 8 9 |
x |
A tag element or .style pronoun. |
color |
One of |
align |
One of |
spacing |
One of |
decoration |
One of |
wrap |
One of |
select |
One of |
div( .style %>% text("blue") %>% # <- border("blue"), p("Nullam tristique diam non turpis.", "Pellentesque dapibus suscipit ligula.", "Nullam eu ante vel est convallis dignissim."), p("Aliquam posuere.") )
Nullam tristique diam non turpis. Pellentesque dapibus suscipit ligula. Nullam eu ante vel est convallis dignissim.
Aliquam posuere.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | library(htmltools)
div(
.style %>%
text(spacing = "small"),
"Nam vestibulum accumsan nisl.",
"Fusce commodo."
)
div(
.style %>%
text(spacing = "large"),
"Suspendisse potenti.",
"Pellentesque tristique imperdiet tortor."
)
tags$button(
.style %>%
text(wrap = FALSE),
"Aliquam feugiat tellus ut neque."
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.