@extends('_layouts.markdown', ['title' => 'Flex Direction']) @section('content')
Flexbox

Flex Direction

Tailwind provides a comprehensive set of Flexbox utilities out of the box to make it easy for you to implement complex layouts without having to write any new CSS.

Responsive

@component('_partials.responsive-code-sample') @slot('none')
1
2
3
@endslot @slot('sm')
1
2
3
@endslot @slot('md')
1
2
3
@endslot @slot('lg')
1
2
3
@endslot @slot('xl')
1
2
3
@endslot @slot('code')
@endslot @endcomponent

Row Default

Use .flex-row to position flex items horizontally in the same direction as text:

@component('_partials.code-sample')
1
2
3
@endcomponent

Row reversed

Use .flex-row-reverse to position flex items horizontally in the opposite direction:

@component('_partials.code-sample')
1
2
3
@endcomponent

Column

Use .flex-col to position flex items vertically:

@component('_partials.code-sample')
1
2
3
@endcomponent

Column reversed

Use .flex-col-reverse to position flex items vertically in the opposite direction:

@component('_partials.code-sample')
1
2
3
@endcomponent @endsection