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

```kotlin
class MultiLine(val minHeightInLines: Int = 1, val maxHeightInLines: Int = Int.MAX_VALUE) :
        TextFieldLineLimits
```

The text field will be at least [minHeightInLines](#minheightinlines) tall, if the text overflows it will wrap,
and if the text ends up being more than one line the field will grow until it is
[maxHeightInLines](#maxheightinlines) tall and then start scrolling vertically.

It is required that 1 ≤ [minHeightInLines](#minheightinlines) ≤ [maxHeightInLines](#maxheightinlines).

To specify the minimum and/or maximum height of the field in non-text units, such as dps, use
the [heightIn](/jetpack-compose/androidx.compose.foundation/foundation-layout/modifiers/heightIn) modifier.