Skip to main content

Text Area

This allows users to input multiple lines of text. It is commonly used when you need to collect longer-form textual information, such as user comments, messages, or any other type of free-form text. The Text Areacomponent provides a larger input area compared to a single-line Text Field component.

Properties

The following properties are available to configure the behavior of the component from the form editor (this is in addition to common properties.

Auto size

Height auto size feature.

Allow clear

If allowed to remove input content with clear icon.

Show chars count

Whether to show character count.

Default Value

This allows you to set the default value for the input field. formData is exposed.

Empty as Default

Whether the component should be initialized to an empty string.

Min Length

This sets a minimum length allowed for user input. If validation is not satisfied then a Validation error message will be rendered beneath the text field. E.g. Password must be at least 5 characters

Max Length

This sets a maximum length allowed for user input. Once the validation has been satisifed then it will restrict user input.

Validator

This allows for javascript expressions to enter custom validator logic and should return a promise. Example implementation can be found here