---
title: "FlexWrap"
description: "Defines whether flex items are forced onto a single line or can wrap onto multiple lines."
type: "class"
---

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


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

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


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


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


## Companion Object

#### Properties

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


```kotlin
inline val NoWrap
```


Items are laid out in a single line. Items will shrink to fit the container if their
`FlexConfigScope.shrink` 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.



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


```kotlin
inline val Wrap
```


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 `FlexDirection.Row`).



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


```kotlin
inline val WrapReverse
```


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
`FlexDirection.Row`).





