react-autosize

React component to adjust textarea height automatically to fit text.

Usage no npm install needed!

<script type="module">
  import reactAutosize from 'https://cdn.skypack.dev/react-autosize';
</script>

README

react-textarea-autosize

React component to adjust textarea height automatically to fit text.

Install

npm install react-textarea-autosize --save

Example

var React = require('react'); 
var Textarea = require('react-textarea-autosize');

var TextareaDemo = React.createClass({
  render: function () {
    return (
      <Textarea>
        When you enter more text in this textarea,
        its height increases automatically instead of showing a scrollbar. 
      </Textarea>
    );
  }
});