Grid Auto Flow β
Utilities for controlling the flow direction of automatically placed grid items.
| Class Name | CSS Equivalent |
|---|---|
| grid-flow-row | grid-auto-flow: row; |
| grid-flow-column | grid-auto-flow: column; |
| grid-flow-dense | grid-auto-flow: dense; |
| grid-flow-row-dense | grid-auto-flow: row-dense; |
| grid-flow-column-dense | grid-auto-flow: column-dense; |
Grid Flow Row β
The .grid-flow-row class sets the grid-auto-flow property to 'row', allowing grid items to be automatically placed in rows.
<div class="grid grid-flow-row gap-m w-full">
<div class="[...]">1</div>
<div class="[...]">2</div>
<div class="[...]">3</div>
</div>Grid Flow Column β
The .grid-flow-column class sets the grid-auto-flow property to 'column', allowing grid items to be automatically placed in columns.
<div class="grid grid-flow-column gap-m w-full">
<div class="[...]">1</div>
<div class="[...]">2</div>
<div class="[...]">3</div>
</div>Grid Flow Dense β
The .grid-flow-dense class sets the grid-auto-flow property to 'dense', allowing grid items to be automatically placed with optimization for available space.
<div class="grid grid-flow-dense gap-m w-full">
<div class="[...]">1</div>
<div class="[...]">2</div>
<div class="[...]">3</div>
</div>Grid Flow Row Dense β
The .grid-flow-row-dense class sets the grid-auto-flow property to 'row-dense', allowing grid items to be automatically placed in rows with optimization for available space.
<div class="grid grid-flow-row-dense gap-m w-full">
<div class="[...]">1</div>
<div class="[...]">2</div>
<div class="[...]">3</div>
</div>Grid Flow Column Dense β
The .grid-flow-column-dense class sets the grid-auto-flow property to 'column-dense', allowing grid items to be automatically placed in columns with optimization for available space.
<div class="grid grid-flow-column-dense gap-m w-full">
<div class="[...]">1</div>
<div class="[...]">2</div>
<div class="[...]">3</div>
</div>