Package Exports
- react-autosize-textarea
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-autosize-textarea) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React Autosize Textarea
A light replacement for built-in textarea component which automaticaly adjusts its height to match the content. It does not require any polyfill
This module is based on the very popular autosize script written by Jack Moore. Check his website here for more documentation.
var TextareaAutosize = require('react-autosize-textarea');
React.renderComponent(
<div>
<TextareaAutosize {...textareaProps} onResize={() => {}} />
</div>,
document.body);###Install
npm install --save react-autosize-textarea###API You can pass any props you're allowed to use with default React textarea (valueLink too).
You can also pass the callback onResize which will be triggered at any resize:
onResize: React.PropTypes.func###Browser Compatibility
| Chrome | Firefox | IE | Safari | Android |
|---|---|---|---|---|
| Yes | Yes | 9+ | Yes | 4+ |