Flex utilities define the row but children can still resist shrinking. Inspect long labels before adding more breakpoints.
Worked example
<div class="demo flex gap-2">
<span class="tile">One</span><span class="tile">Two</span
><span class="tile">Three</span>
</div>Implementation notes
Spacing utilities on children can interact with wrapping. A gap on the flex container often makes a two-row layout easier to reason about.
Try it yourself
Replace one word with a long filename.
Open the Tailwind CSS example →Editorial date November 21, 2026 · Published December 6, 2026