Skip to content

Cluster

af-cluster is a semantic layout recipe: wrap + center alignment in one class. Equivalent utilities: af-inline af-items-center af-gap-md.

Use it for tags, chips, and grouped buttons. Prefer the recipe first; reach for Display & Alignment when you need a custom combination.

RecipeEquivalent utilitiesUse when
af-clusteraf-inline af-items-center af-gap-mdTags, chips, grouped buttons
af-spreadaf-inline af-items-center af-justify-betweenHeader left/right
af-centeraf-flex af-justify-center af-items-centerCenter on both axes
ClassPurposeExample
af-clusterInline cluster (wrap + center alignment)<div class="af-cluster">
<div class="af-cluster">
  <span class="af-chip">Tag 1</span>
  <span class="af-chip">Tag 2</span>
  <span class="af-chip">Tag 3</span>
</div>

Explicit equivalent (when needed):

<div class="af-inline af-items-center af-gap-md">
  <span>Cluster content</span>
  <span>Cluster content</span>
</div>