---
title: "TextConfiguration"
description: "Class representing aspects of [Text] that can be configured with [LocalTextConfiguration]."
type: "class"
---

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


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

<div class='sourceset sourceset-android'>Android</div>


```kotlin
public class TextConfiguration(
    public val textAlign: TextAlign?,
    public val overflow: TextOverflow,
    public val maxLines: Int,
)
```


Class representing aspects of `Text` that can be configured with `LocalTextConfiguration`.

#### Parameters

| | |
| --- | --- |
| textAlign | The alignment of the text within the lines of the paragraph. |
| overflow | How visual overflow should be handled. |
| maxLines | The maximum number of lines for the text to span, wrapping if necessary. |




