react-resizable-textarea

0.2.2 • Public • Published

Build Status

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-resizable-textarea

Weekly Downloads

888

Version

0.2.2

License

MIT

Unpacked Size

32.4 kB

Total Files

8

Last publish

Collaborators

  • rvdkooy