gaving-mx / react-resizable-textarea

With this ReactJs component you can render textarea's that are resizable in IE, just like in Chrome and Firefox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

With this ReactJs component you can render textarea's that are resizable in IE, just like in Chrome and Firefox

License:MIT License


Languages

Language:JavaScript 85.4%Language:CSS 14.6%