Text Area
A text area lets a user input a longer amount of text than a standard text field. It can include all of the standard validation options supported by the text field component.
Sizes
Control the size of a textarea by setting the size property to small, medium or large. By default, the textarea has size medium.
<qtm-textarea placeholder="Small" size="small"></qtm-textarea>
<qtm-textarea placeholder="Medium" size="medium"></qtm-textarea>
<qtm-textarea placeholder="Large" size="large"></qtm-textarea>
You can place textarea element inside a form field
<qtm-form-field>
<qtm-form-label for="textarea" size="small">
<span>Label</span>
</qtm-form-label>
<qtm-textarea placeholder="Small" size="small" input-id="textarea"></qtm-textarea>
<qtm-form-caption size="small">This is a help text</qtm-form-caption>
</qtm-form-field>
...
Disabled
Set disabled property to true to disable the component.
<qtm-textarea disabled placeholder="Disabled"></qtm-textarea>
Resize
Text areas can either be a fixed size or can be resizable with a drag icon in the bottom right corner.
By default, the drag icon should be hidden and the text area should not be resizable. You can set the resize property to true to enable the drag icon.
<qtm-textarea placeholder="Textarea should be resizable" resize></qtm-textarea>
Value
Control textarea value by using value attribute.
<qtm-textarea value="Textarea content"></qtm-textarea>