| item_grow | R Documentation |
The item_grow() and item_shrink() adjust a tag element's ability to grow
or shrink inside a flex element.
item_grow(x, ...)
item_shrink(x, ...)
x |
A tag element or .style pronoun. |
... |
A boolean specifying to grow or shrink. One of,
|
An object of the same type as x.
Other flex utilities:
flex_align(),
flex_content(),
flex_direction(),
flex_display(),
flex_justify(),
flex_wrap(),
item_align(),
item_fill(),
item_order()
library(htmltools)
div(
.style %>%
flex_display(),
div(
.style %>%
padding_all(2) %>%
item_grow(TRUE),
"Flex item"
),
div(
.style %>%
padding_all(2),
"Flex item"
),
div(
.style %>%
padding_all(2),
"Flex item"
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.