title: Autosize summary: The autosize element will automatically adjust the textarea height and make it easier for users to follow as they type. docs-libs: autosize
To be able to use the autosize in your application you will need to install the autosize dependency with npm install autosize
.
Add the autosize element to your input to make it automatically adjust to the length of a text as a user types it.
To create autosize textarea, add the data-bs-toggle="autosize"
attribute to the textarea element:
{% capture html -%} Autosize example {%- endcapture %} {% include "docs/example.html" html=html column vertical %}