# FlexWrap

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

  ```
  value class FlexWrap
  ```

*** ** * ** ***

Defines whether flex items are forced onto a single line or can wrap onto multiple lines.

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

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexWrap` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexWrap#NoWrap()` Items are laid out in a single line. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexWrap` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexWrap#Wrap()` Items wrap onto multiple lines if they exceed the main axis size. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexWrap` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexWrap#WrapReverse()` Items wrap onto multiple lines if they exceed the main axis size. | 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/FlexWrap#toString()()` | Cmn |

## Public companion properties

### NoWrap

Cmn

```
val NoWrap: FlexWrap
```

Items are laid out in a single line. Items will shrink to fit the container if their `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexConfigScope#shrink(kotlin.Float)` factor allows it. If they cannot shrink enough to fit the main axis (for example, due to their minimum intrinsic sizes), they will visually overflow on main axis of the container.

### Wrap

Cmn

```
val Wrap: FlexWrap
```

Items wrap onto multiple lines if they exceed the main axis size. New lines are added along the cross axis, starting from the `cross-start` edge and flowing toward the `cross-end` edge. (For example, top-to-bottom in a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexDirection#Row()`).

### WrapReverse

Cmn

```
val WrapReverse: FlexWrap
```

Items wrap onto multiple lines if they exceed the main axis size. New lines are added in the reverse direction along the cross axis, starting from the `cross-end` edge and flowing toward the `cross-start` edge. (For example, bottom-to-top in a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/FlexDirection#Row()`).

## Public functions

### toString

Cmn

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