item_fill: Flex fill

View source: R/item-fill.R

item_fillR Documentation

Flex fill

Description

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

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"
  )
)


cascadess documentation built on Oct. 30, 2024, 9:29 a.m.