🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

TextOverflow

Specifies how to handle overflowing text.

Source set: Common
public class TextOverflow internal constructor(internal val value: Int)

Specifies how to handle overflowing text.

Members

Companion

Source set: Common
public companion object

Properties

Clip

Source set: Common
public val Clip: TextOverflow

Clips overflowing text to fit its container.

Ellipsis

Source set: Common
public val Ellipsis: TextOverflow

Displays an ellipsis at the end of the line to indicate overflow.

For example, "This is a ...".

Visible

Source set: Common
public val Visible: TextOverflow

Displays all text, even if it exceeds the specified bounds.

Text may render outside the composable bounds. To allow the container to expand with the text, use modifiers like Modifier.heightIn or Modifier.widthIn.

Note: Text expanding past its bounds may still be clipped by modifiers like Modifier.clipToBounds.

StartEllipsis

Source set: Common
public val StartEllipsis: TextOverflow

Displays an ellipsis at the start of the line.

For example, "... is a text".

Note: On Android, this falls back to Clip for multiline text (only supported for single line or maxLines=1).

MiddleEllipsis

Source set: Common
public val MiddleEllipsis: TextOverflow

Displays an ellipsis in the middle of the line.

For example, "This ... text".

Note: On Android, this falls back to Clip for multiline text (only supported for single line or maxLines=1).