React Textarea Autosize screenshot

React Textarea Autosize

Author Avatar Theme by Andarist
Updated: 30 Mar 2025
2329 Stars

<textarea /> component for React which grows with content

Categories

Overview

npm react-textarea-autosize is a drop-in replacement for the textarea component in React, which automatically resizes the textarea as the content changes. It is a native React version of the popular jQuery Autosize, weighing around 1.3KB (minified & gzipped) and supporting IE9 and above.

Features

  • Automatic Resizing: The textarea component automatically resizes as the content changes.
  • Lightweight: Weighing around 1.3KB (minified & gzipped), it is a lightweight solution for automatic resizing.
  • Supports IE9 and above: Compatible with Internet Explorer 9 and newer versions.

Installation

To install the npm react-textarea-autosize module, you can use the following npm command:

npm install react-textarea-autosize

Summary

npm react-textarea-autosize is a convenient solution for implementing automatic resizing of textarea components in React applications. With features like automatic resizing, lightweight package size, and support for older versions of Internet Explorer, it provides an efficient and user-friendly experience for developers working on React projects.