TextFieldLabelScope

Interface

Common
interface TextFieldLabelScope

Scope for the label of a TextField or OutlinedTextField.

Properties

Common
@get:FloatRange(from = 0.0, to = 1.0) val labelMinimizedProgress: Float

The animation progress of a label between its expanded and minimized sizes, where 0 represents an expanded label and 1 represents a minimized label.

Label animation is handled by the framework when using a component that reads from LocalTextStyle, such as the default Text. This labelMinimizedProgress value can be used to coordinate other animations in conjunction with the default animation.