Skip to content

Flex direction

Utilities for controlling flex direction.

ClassStyles
af-rowflex-direction: row
af-row-reverseflex-direction: row-reverse
af-colflex-direction: column
af-col-reverseflex-direction: column-reverse
af-flex-reverseflex-direction: row-reverse
Row vs column
One
Two
Three
<div class="af-flex af-col" style="gap: 0.5rem;">
  <div class="af-badge">
    One
  </div>
  <div class="af-badge">
    Two
  </div>
  <div class="af-badge">
    Three
  </div>
</div>

All flex-direction utilities support responsive variants using the @{bp} suffix:

  • af-col@md

See Responsive Suffix for syntax and breakpoints.