atoms.form-controls.textarea.textarea-autogrow Textarea Autogrow

Toggle example guides Toggle HTML markup

If you want the textarea to autogrow while typing you need to add classes form-control--autogrow and js-textarea-autogrow to the element as well. Also you need to remove the rows attribute and replace it with a data-min-rows attribute. The value should be a number just like rows.

Markup: 02-atoms/form-controls/form-textarea-autogrow.twig
<textarea class="form-control form-control--autogrow js-textarea-autogrow" data-min-rows="2">Textarea with autogrow behavior</textarea>
Source: 02-atoms/form-controls/_textarea.scss, line 17