flex-wrap lets items flow to new lines; nowrap keeps one line. This family contains 3 generated classes in Nakshora 3.1.

Classes#

ClassGenerated CSS
flex-wrapflex-wrap: wrap;
flex-wrap-reverseflex-wrap: wrap-reverse;
flex-nowrapflex-wrap: nowrap;

Example#

example
html
<div class="flex flex-wrap gap-2">…tags…</div>

Responsive & variants#

Every class here accepts screen prefixes (xxs:5xl:) and state variants — md:hover:p-4 style stacks compile to a single media query. See responsive/index|Responsive design and variants/index|Variants.

Best practices#

  • Tag clouds and chip rows want flex-wrap + gap

utilities/grid/grid-template-columns|Grid · comparisons/grid-vs-flexbox|Grid vs flexbox