Skip to contents

The item_fill() adjusts how tag elements fill a flex element.

Usage

item_fill(x, ...)

Arguments

x

param_subject()

...

A boolean specifying to fill. One of

  • TRUE

Use name-value pairs to specifying breakpoints.

Value

An object of the same type as x.

See also

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>