TextLineLimits

sealed interface TextLineLimits

How many lines a text input shows. Every renderer applies the same rules.

SingleLine rejects newlines and uses the return key to move to the next field or finish. MultiLine accepts newlines, inserts one on return, and grows from MultiLine.minLines to MultiLine.maxLines before scrolling its content.

Inheritors

Types

Link copied to clipboard
data class MultiLine(val minLines: Int = 1, val maxLines: Int = Int.MAX_VALUE) : TextLineLimits
Link copied to clipboard