Skip to content

flex-wrap

Utilities for controlling how flex items wrap.

Class Effect
flex-nowrap flex-wrap: nowrap;
flex-wrap flex-wrap: wrap;
flex-wrap-reverse flex-wrap: wrap-reverse;

Use flex-nowrap to keep items on one line, shrinking them if needed.

flex-wrap: Don't wrapflex-wrap: Don't wrap
if ui.div("flex flex-nowrap gap-4") {
tile("01", "w-2/5 shrink-0")
tile("02", "w-2/5 shrink-0")
tile("03", "w-2/5")
}
flex-wrap: Wrap normallyflex-wrap: Wrap normally
if ui.div("flex flex-wrap gap-4") {
tile("01", "w-2/5")
tile("02", "w-2/5")
tile("03", "w-2/5")
}
flex-wrap: Wrap reversedflex-wrap: Wrap reversed
if ui.div("flex h-44 flex-wrap-reverse content-start gap-4") {
tile("01", "w-2/5")
tile("02", "w-2/5")
tile("03", "w-2/5")
}