public class TextOverflow internal constructor(internal val value: Int)
Specifies how to handle overflowing text.
Members
Companion
public companion object
Properties
Clip
public val Clip: TextOverflow
Clips overflowing text to fit its container.
Ellipsis
public val Ellipsis: TextOverflow
Displays an ellipsis at the end of the line to indicate overflow.
For example, "This is a ...".
Visible
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
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
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).