Flex Wrap
Set how flex items wrap in a container.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
Usage
No Wrap
Prevent items from wrapping to the next line.
A
B
C
<div class="p-r c-white"> <div class="d-f fw-nw g-4 max-w-30"> <div class="ai-c bg-indigo d-f jc-c p-4">A</div> <div class="ai-c bg-indigo d-f jc-c p-4">B</div> <div class="ai-c bg-indigo d-f jc-c p-4">C</div> </div></div>Wrap
Allow items to wrap onto multiple lines.
A
B
C
<div class="p-r c-white"> <div class="d-f fw-w g-4 max-w-30"> <div class="ai-c bg-indigo d-f jc-c p-4">A</div> <div class="ai-c bg-indigo d-f jc-c p-4">B</div> <div class="ai-c bg-indigo d-f jc-c p-4">C</div> </div></div>Wrap Reverse
Allow items to wrap onto multiple lines in reverse order.
A
B
C
<div class="p-r c-white"> <div class="d-f fw-wr g-4 max-w-30"> <div class="ai-c bg-indigo d-f jc-c p-4">A</div> <div class="ai-c bg-indigo d-f jc-c p-4">B</div> <div class="ai-c bg-indigo d-f jc-c p-4">C</div> </div></div>Responsive Design
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
Target viewport sizes with breakpoint prefixes.
sm:fw-[value]Small≥640px
md:fw-[value]Medium≥768px
lg:fw-[value]Large≥1024px
xxl:fw-[value]Extra Large≥1536px
Hover State
Apply styles conditionally on hover using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:fw-[value]