# FlexAlignSelf

Artifact: [androidx.compose.foundation:foundation-layout](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/layout/FlexBox.kt+class:androidx.compose.foundation.layout.FlexAlignSelf) Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.11.0) Common/AllAndroid/JVM
- Cmn

  ```
  value class FlexAlignSelf
  ```

*** ** * ** ***

Defines the cross-axis alignment for a single flex item, overriding the container's `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignItems`.

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

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexConfigScope#alignSelf(androidx.compose.foundation.layout.FlexAlignSelf)` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignItems` |   |

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignSelf` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignSelf#Auto()` Inherits the alignment from the container's `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexBoxConfigScope#alignItems(androidx.compose.foundation.layout.FlexAlignItems)`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignSelf` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignSelf#Baseline()` The item is aligned such that its baseline matches the baseline of other baseline-aligned items in the line. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignSelf` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignSelf#Center()` The item is centered along the cross axis within its line. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignSelf` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignSelf#End()` The item is aligned toward the `cross-end` edge of its line. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignSelf` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignSelf#Start()` The item is aligned toward the `cross-start` edge of its line. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignSelf` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignSelf#Stretch()` Stretches the item to fill the cross axis size of its line. | Cmn |

| ### Public functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignSelf#toString()()` | Cmn |

## Public companion properties

### Auto

Cmn

```
val Auto: FlexAlignSelf
```

Inherits the alignment from the container's `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexBoxConfigScope#alignItems(androidx.compose.foundation.layout.FlexAlignItems)`. This is the default value.

### Baseline

Cmn

```
val Baseline: FlexAlignSelf
```

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 `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignSelf#Start()` alignment.

### Center

Cmn

```
val Center: FlexAlignSelf
```

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

### End

Cmn

```
val End: FlexAlignSelf
```

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

### Start

Cmn

```
val Start: FlexAlignSelf
```

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

### Stretch

Cmn

```
val Stretch: FlexAlignSelf
```

Stretches the item to fill the cross axis size of its line.

The item stretches to fill the line even if an explicit cross-axis size was set on the item, unless a modifier that enforces size like `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/requiredSize.modifier#(androidx.compose.ui.Modifier).requiredSize(androidx.compose.ui.unit.Dp)` is used.

## Public functions

### toString

Cmn

```
open fun toString(): String
```