@olasearch/textarea-elastic

Automatically adjusts the height of the textarea as user types

Usage no npm install needed!

<script type="module">
  import olasearchTextareaElastic from 'https://cdn.skypack.dev/@olasearch/textarea-elastic';
</script>

README

Elastic textarea

Automatically adjusts the height of the textarea as user types

Installation

React Autogrow Textarea can be installed as an npm package

yarn add @olasearch/textarea-elastic

Usage

import React from 'react';
import Textarea from '@olasearch/textarea-elastic';

let App = React.createClass({
  render() {
    return (
      <Textarea />
    );
  }
});

React.render(<App/>, document.getElementById('container'));

You can pass all props that can be used with default React textarea

License

This project is licensed under the terms of the MIT license.