Docs

Documentation versions (currently viewingVaadin 14)

You are viewing documentation for an older Vaadin version. View latest documentation

Text Area

Text Area is an input field component for multi-line text input.

Source code
TextAreaBasic.java

Text Area is typically used for descriptions, comments, and other longer free-form content.

Common Input Field Features

Text Area includes all Text Field and shared input field features.

Automatic Height Adjustment

Unless set to a fixed height, Text Area adjusts its height automatically based on its content. The default and minimum height is two rows of text.

Source code
TextAreaAutoHeight.java

Minimum and Maximum Height

The automatic resizing can be restricted to a minimum and maximum height:

Source code
TextAreaHeight.java

Character Counter

Longer free-form inputs are often capped at a certain character limit. The current character count and upper limit should be indicated to the user, for example, by using the Helper feature:

Source code
TextAreaHelper.java
Component Usage recommendations

Text Field

Basic single-line text input.

Rich Text Editor

Multi-line text entry with rich formatting support.

9846D297-9B45-45FB-A0A1-1774F74596E1