The item_fill()
adjusts how tag elements fill a flex element.
Arguments
- x
param_subject()
- ...
A boolean specifying to fill. One of
TRUE
Use name-value pairs to specifying breakpoints.
See also
Other flex utilities:
flex_align()
,
flex_content()
,
flex_direction()
,
flex_display()
,
flex_justify()
,
flex_wrap()
,
item_align()
,
item_grow()
,
item_order()
Examples
library(htmltools)
div(
.style %>%
flex_display(),
div(
.style %>%
item_fill(TRUE),
"Flex item"
),
div(
.style %>%
item_fill(TRUE),
"Flex item"
),
div(
.style %>%
item_fill(TRUE),
"Flex item"
)
)
#> <div class="d-flex">
#> <div class="flex-fill">Flex item</div>
#> <div class="flex-fill">Flex item</div>
#> <div class="flex-fill">Flex item</div>
#> </div>