dw-neit-rc-textarea
v1.8.1
Published
Pretty Textarea react component used in used in ant.design
Downloads
33
Maintainers
Readme
dw-neit-rc-textarea
Pretty Textarea react component used in ant.design.
Live Demo
https://react-component.github.io/textarea/
Install
Usage
import Textarea from 'dw-neit-rc-textarea';
import { render } from 'react-dom';
render(<Textarea />, mountNode);
API
| Property | Type | Default | Description |
| ------------ | --------------------------- | ----------- | ---------------------------------------------------------------------------------------------- |
| prefixCls | string | dw-neit-rc-textarea | |
| className | string | '' | additional class name of textarea |
| style | React.CSSProperties | - | style properties of textarea |
| autoSize | boolean | object | - | Height autosize feature, can be set to true\|false
or an object { minRows: 2, maxRows: 6 }
|
| onPressEnter | function(e) | - | The callback function that is triggered when Enter key is pressed |
| onResize | function({ width, height }) | - | The callback function that is triggered when resize |
Development
npm install
npm start
License
dw-neit-rc-textarea is released under the MIT license.