Skip to content

Flex Direction ​

Utilities for controlling the flex direction of a container.

Class NameCSS Equivalent
flex-rowflex-direction: row;
flex-row-reverseflex-direction: row-reverse;
flex-columnflex-direction: column;
flex-column-reverseflex-direction: column-reverse;

Flex Row ​

The .flex-row class sets the flex-direction property to row, making the container's items flow horizontally.

html
<div class="flex flex-row gap-m w-full">
  <div class="[...]">1</div>
  <div class="[...]">2</div>
  <div class="[...]">3</div>
</div>
1
2
3

Flex Row Reverse ​

The .flex-row-reverse class sets the flex-direction property to row-reverse, making the container's items flow horizontally in reverse order.

html
<div class="flex flex-row-reverse gap-m w-full">
  <div class="[...]">1</div>
  <div class="[...]">2</div>
  <div class="[...]">3</div>
</div>
1
2
3

Flex Column ​

The .flex-column class sets the flex-direction property to column, making the container's items flow vertically.

html
<div class="flex flex-column gap-m m-i-auto">
  <div class="[...]">1</div>
  <div class="[...]">2</div>
  <div class="[...]">3</div>
</div>
1
2
3

Flex Column Reverse ​

The .flex-column-reverse class sets the flex-direction property to column-reverse, making the container's items flow vertically in reverse order.

html
<div class="flex flex-column-reverse gap-m m-i-auto">
  <div class="[...]">1</div>
  <div class="[...]">2</div>
  <div class="[...]">3</div>
</div>
1
2
3