npm.io
0.2.2 • Published 7 years ago

react-resizable-textarea

Licence
MIT
Version
0.2.2
Deps
0
Size
32 kB
Vulns
0
Weekly
0
Stars
4
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

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