---
title: "FlexAlignItems"
description: "Defines the default alignment for items along the cross axis within their respective lines. This
controls how items are positioned perpendicular to the main axis. This can be overridden for an
individual item using [FlexConfigScope.alignSelf]."
type: "class"
---

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


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

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


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


Defines the default alignment for items along the cross axis within their respective lines. This
controls how items are positioned perpendicular to the main axis. This can be overridden for an
individual item using `FlexConfigScope.alignSelf`.


## Companion Object

#### Properties

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


```kotlin
inline val Start
```


Items are aligned toward the cross-start edge of their line.



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


```kotlin
inline val End
```


Items are aligned toward the cross-end edge of their line.



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


```kotlin
inline val Center
```


Items are centered along the cross axis within their line.



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


```kotlin
inline val Stretch
```


Items are stretched to fill the cross axis size of their line.



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


```kotlin
inline val Baseline
```


Items are aligned such that their baselines match along the cross axis. Items without a
baseline fall back to `Start` alignment.





