flex_wrap: Flex wrapping

View source: R/flex-wrap.R

flex_wrapR Documentation

Flex wrapping

Description

The flex_wrap() function adjusts how a tag element's child elements wrap, or don't wrap, onto new lines.

Usage

flex_wrap(x, ...)

Arguments

x

A tag element or .style pronoun.

...

A boolean specifying to wrap or not wrap. One of,

  • TRUE

  • FALSE

Value

An object of the same type as x.

See Also

Other flex utilities: flex_align(), flex_content(), flex_direction(), flex_display(), flex_justify(), item_align(), item_fill(), item_grow(), item_order()

Examples


library(htmltools)

div(
  .style %>%
    flex_display() %>%
    flex_wrap(FALSE),
  div("Flex item"),
  div("Flex item"),
  div("Flex item"),
  div("Flex item")
)


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