Data Input

TextInput

Definition

Collects short text values.

Usage

Use TextInput for names, identifiers, emails, search terms, and other single-line values.

Attributes

  • label or i18n required. Accessible field label.
  • value required. String value or writable state binding.
  • type. text, password, or email.
  • placeholder. Placeholder text.
  • hasClear. Shows a clear action when the value is non-empty.

Example

xml
<TextInput label="Customer name" value="$form.name" isRequired="true" />