textField

abstract fun textField(state: TextFieldState, size: IntSize, enabled: Boolean, style: TextStyle, modifier: Modifier, key: ElementKey<*>?): Element(source)

Creates one profile-backed text-field element observing state.

Return

an immutable retained-element description that references but does not own state.

Parameters

state

caller-owned owner-thread text state.

size

fixed logical field size.

enabled

whether editing and enabled pixels are active.

style

profile text policy.

modifier

active behavior around the field.

key

optional stable sibling identity.