Attached

class Attached(val alwaysMinimize: Boolean = false, val minimizedAlignment: Alignment.Horizontal = Alignment.Start, val expandedAlignment: Alignment.Horizontal = Alignment.Start) : TextFieldLabelPosition

The default label position according to the Material specification.

For TextField, the label is positioned inside the text field container. For OutlinedTextField, the label is positioned inside the text field container when expanded and cuts into the border when minimized.

Parameters

alwaysMinimize

Whether to always keep the label of the text field minimized. If false, the label will expand to occupy the input area when the text field is unfocused and empty. If true, this allows displaying the placeholder, prefix, and suffix alongside the label when the text field is unfocused and empty.

minimizedAlignment

The horizontal alignment of the label when it is minimized.

expandedAlignment

The horizontal alignment of the label when it is expanded.

Constructors

Link copied to clipboard
constructor(alwaysMinimize: Boolean = false, minimizedAlignment: Alignment.Horizontal = Alignment.Start, expandedAlignment: Alignment.Horizontal = Alignment.Start)

Properties

Link copied to clipboard
Link copied to clipboard
val expandedAlignment: Alignment.Horizontal
Link copied to clipboard
val minimizedAlignment: Alignment.Horizontal

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String