aura

Textarea

The textarea component is used to create a multi-line text input field.

Important: The textarea uses content to resize the height of the textarea. This is currently not supported in all browsers.

Attributes

  • rows (int) - The number of rows to display. Default is 3.

Basic Usage

Copy to clipboard

<aura:textarea label="Message">
    Hello World!
</aura:textarea>

With Rows

Copy to clipboard

<aura:textarea label="Message" rows="5" />

Disabled

Copy to clipboard

<aura:textarea label="Message" disabled>
    Hello World!
</aura:textarea>