Google is committed to advancing racial equity for Black communities. See how.

TextOverflow

enum class TextOverflow
kotlin.Any
   ↳ kotlin.Enum<androidx.compose.ui.text.style.TextOverflow>
   ↳ androidx.compose.ui.text.style.TextOverflow

How overflowing text should be handled.

Summary

Enum values

Clip the overflowing text to fix its container.

Use an ellipsis to indicate that the text has overflowed.

Won't handle overflow, and report the needed size to the parent.

Enum values

Clip

enum val Clip : TextOverflow

Clip the overflowing text to fix its container.

Ellipsis

enum val Ellipsis : TextOverflow

Use an ellipsis to indicate that the text has overflowed.

None

enum val None : TextOverflow

Won't handle overflow, and report the needed size to the parent.