# TextFieldLineLimits

Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/text/input/TextFieldLineLimits.kt+class:androidx.compose.foundation.text.input.TextFieldLineLimits) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.7.0) Common/All
- Cmn

  ```
  sealed interface TextFieldLineLimits
  ```
Known direct subclasses [TextFieldLineLimits.MultiLine](https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/input/TextFieldLineLimits.MultiLine), [TextFieldLineLimits.SingleLine](https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/input/TextFieldLineLimits.SingleLine)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/input/TextFieldLineLimits.MultiLine` | The text field will be at least `https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/input/TextFieldLineLimits.MultiLine#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 `https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/input/TextFieldLineLimits.MultiLine#maxHeightInLines()` tall and then start scrolling vertically. |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/input/TextFieldLineLimits.SingleLine` | The text field is always a single line tall, ignores newlines in the text, and scrolls horizontally when the text overflows. |

*** ** * ** ***

Values that specify the text wrapping, scrolling, and height measurement behavior for text fields.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/input/TextFieldLineLimits.SingleLine` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/input/TextFieldLineLimits.MultiLine` |   |

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/input/TextFieldLineLimits.MultiLine : https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/input/TextFieldLineLimits` The text field will be at least `https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/input/TextFieldLineLimits.MultiLine#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 `https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/input/TextFieldLineLimits.MultiLine#maxHeightInLines()` tall and then start scrolling vertically. |
| `object https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/input/TextFieldLineLimits.SingleLine : https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/input/TextFieldLineLimits` The text field is always a single line tall, ignores newlines in the text, and scrolls horizontally when the text overflows. |

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/input/TextFieldLineLimits` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/input/TextFieldLineLimits#Default()` | Cmn |

## Public companion properties

### Default

Cmn Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.7.0)

```
val Default: TextFieldLineLimits
```