Flex
The Flex system provides utility classes for creating flexible layouts using Flexbox. It supports both row and column directions with various alignment options for quick and consistent layout creation.
Basic Flex Usage
The flex system provides two main ways to control layout:
-
Direction: Use
flex--row
orflex--col
for layout direction -
Alignment: Use
flex--start
,flex--center
, orflex--end
for alignment
Row Direction
Use flex flex--row
with alignment modifiers:
Start
Center
End
<div class="flex flex--row flex--start">
{{ Item }}
</div>
<div class="flex flex--row flex--center">
{{ Item }}
</div>
<div class="flex flex--row flex--end">
{{ Item }}
</div>
Column Direction
Use flex flex--col
with alignment modifiers:
Start
Center
End
<div class="flex flex--col flex--start">
{{ Item }}
</div>
<div class="flex flex--col flex--center">
{{ Item }}
</div>
<div class="flex flex--col flex--end">
{{ Item }}
</div>