Skip to Content
API ReferenceTextField

TextField

A single-line or multi-line text input field. Maps to a UIToolkit TextField.

Constructor

TextField

Creates an TextField element.

ParameterDescription
valueThe current text value.
onChangedCallback invoked on every value change.
placeholderOptional placeholder text shown when the field is empty.
readOnlyWhen true the field is not editable.
multilineWhen true the field accepts multiple lines.
keyAn optional key for reconciliation identity.

Properties

Multiline

Whether the field accepts multiple lines of text.

OnChanged

Callback invoked whenever the text value changes. Receives the new string value as its argument.

Placeholder

Placeholder text shown when the field is empty. Null means no placeholder is displayed.

ReadOnly

Whether the field is read-only. When true the user cannot edit the value.

Value

The current text value displayed in the field.

Methods

ShouldRebuild

Last updated on