react-resizable-textarea
v0.2.2
Published
[![Build Status](https://travis-ci.org/rvdkooy/react-resizable-textarea.svg?branch=master)](https://travis-ci.org/rvdkooy/react-resizable-textarea)
Downloads
3,631
Readme
react-resizable-textarea
With this ReactJs component you can render textarea's that are resizable in IE, just like in Chrome and Firefox
Usage:
import ResizableTextArea from 'react-resizable-textarea';
<ResizableTextArea value={ 'some text' } onChange={ (e) => window.alert(e.target.value) } />
Optional props
<ResizableTextArea
directions="xy" // "x"|"y"|"xy" - Resizable directions
fitOnMount // Auto size the textarea's height on mount
minWidth={300} // Minimum width in px
minHeight={100} // Minimum height in px
/>
Development
npm install // installs all dependencies
npm run dev-server // starts webserver, runs webpack to create demo bundle and opens a browser