View source: R/stack-vertical.R
stack_vertical | R Documentation |
The stack_vertical()
and stack_horizontal()
functions are shortcuts
for creating vertical and horizontal flex layouts.
stack_vertical(x)
stack_horizontal(x)
x |
A tag element or .style pronoun. |
An object of the same type as x
.
library(htmltools)
div(
.style %>%
stack_vertical() %>%
gap_all(3),
p(
.style %>%
border_all() %>%
padding_all(2),
"First item"
),
p(
.style %>%
border_all() %>%
padding_all(2),
"Second item"
),
p(
.style %>%
border_all() %>%
padding_all(2),
"Third item"
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.