Element Modifier that resizes a <textarea> accordingly to the input.
Note: Resizing textareas to fit their content is supported by the CSS
field-sizingfeature natively. As of the time writing this note (November 2025) the feature is supported by Google Chrome and Microsoft Edge. This modifier should only be used until all your targeted browsers support the feature.
- Ember.js v4.12 or above
- Ember CLI v4.12 or above
- Node.js v18 or above
ember install ember-autoresize-modifierIf you bind a property to the value of the textarea, you must also pass it as
an argument to {{autoresize}} modifier. Otherwise the textarea won't resize
when the value is changed programmatically:
The addon takes resizes the textarea by setting height / width CSS
property. It overrules all custom values of the height / width property.
Therefore styles of textareas using this modifier must not rely on height /
width CSS property.
Use CSS min-height / min-width and max-height / max-width properties
to enforce a minimum and/or maximum height / width.
- Element Modifiers are not executed in server-side rendering / FastBoot. The textarea won't be resized until rehydration.
See the Contributing guide for details.
This project is licensed under the MIT License.