---
title: "FlexAlignSelf"
description: "Defines the cross-axis alignment for a single flex item, overriding the container's
[FlexAlignItems].

This controls how an individual item is positioned perpendicular to the main axis within its
respective line."
type: "class"
---

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


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

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


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


Defines the cross-axis alignment for a single flex item, overriding the container's
`FlexAlignItems`.

This controls how an individual item is positioned perpendicular to the main axis within its
respective line.


## Companion Object

#### Properties

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


```kotlin
inline val Auto
```


Inherits the alignment from the container's `FlexBoxConfigScope.alignItems`. This is the
default value.



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


```kotlin
inline val Start
```


The item is aligned toward the `cross-start` edge of its line.



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


```kotlin
inline val End
```


The item is aligned toward the `cross-end` edge of its line.



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


```kotlin
inline val Center
```


The item is centered along the cross axis within its line.



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


```kotlin
inline val Stretch
```


The item is stretched to fill the cross axis size of its line.



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


```kotlin
inline val Baseline
```


The item is aligned such that its baseline matches the baseline of other baseline-aligned
items in the line. Items without a baseline fall back to `Start` alignment.





