# FlexAlignItems

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.FlexAlignItems) Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.11.0) Common/AllAndroid/JVM
- Cmn

  ```
  value class FlexAlignItems
  ```

*** ** * ** ***

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

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

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignItems` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignItems#Baseline()` Items are aligned such that their baselines match along the cross axis. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignItems` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignItems#Center()` Items are centered along the cross axis within their line. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignItems` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignItems#End()` Items are aligned toward the cross-end edge of their line. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignItems` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignItems#Start()` Items are aligned toward the cross-start edge of their line. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignItems` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignItems#Stretch()` Stretches items to fill the cross axis size of their 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/FlexAlignItems#toString()()` | Cmn |

## Public companion properties

### Baseline

Cmn

```
val Baseline: FlexAlignItems
```

Items are aligned such that their baselines match along the cross axis. Items without a baseline fall back to `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignItems#Start()` alignment.

### Center

Cmn

```
val Center: FlexAlignItems
```

Items are centered along the cross axis within their line.

### End

Cmn

```
val End: FlexAlignItems
```

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

### Start

Cmn

```
val Start: FlexAlignItems
```

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

### Stretch

Cmn

```
val Stretch: FlexAlignItems
```

Stretches items to fill the cross axis size of their line.

Items stretch to fill the line even if an explicit cross-axis size was set on the item, unless overridden by `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexAlignSelf` or 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)`.

## Public functions

### toString

Cmn

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