---
title: "FlexJustifyContent"
description: "Defines the arrangement of items along the main axis of their respective lines. This controls how
free space is distributed between and around items after their main axis sizes have been
resolved."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
@ExperimentalFlexBoxApi
value class FlexJustifyContent @PublishedApi internal constructor(private val bits: Int)
```


Defines the arrangement of items along the main axis of their respective lines. This controls how
free space is distributed between and around items after their main axis sizes have been
resolved.


## Companion Object

#### Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
inline val Start
```


Place items such that they are as close as possible to the `main-start` edge of their
line.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
inline val End
```


Place items such that they are as close as possible to the `main-end` edge of their line.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
inline val Center
```


Place items such that they are as close as possible to the middle of the main axis within
their line.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
inline val SpaceBetween
```


Place items such that they are spaced evenly across the main axis, without free space
before the first item or after the last item.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
inline val SpaceAround
```


Place items such that they are spaced evenly across the main axis, including free space
before the first item and after the last item, but half the amount of space existing
otherwise between two consecutive items.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
inline val SpaceEvenly
```


Place items such that they are spaced evenly across the main axis, including free space
before the first item and after the last item.





