Skip to content

Flex sizing

Utilities for controlling how flex items grow, shrink, and size.

ClassStyles
af-growflex-grow: 1
af-grow-0flex-grow: 0
af-shrinkflex-shrink: 1
af-shrink-0flex-shrink: 0
af-basis-0flex-basis: 0
af-basis-autoflex-basis: auto
Grow

Fixed

af-grow
<div class="af-flex" style="gap: 0.5rem; width: 100%; max-width: 20rem;">
  <div class="af-bg-primary-soft af-radius-sm af-p-sm" style="width: 6rem;">
    Fixed
  </div>
  <div class="af-bg-primary-soft af-radius-sm af-p-sm af-grow">
    af-grow
  </div>
</div>

All flex sizing utilities support responsive variants using the @{bp} suffix. See Responsive Suffix for syntax and breakpoints.