You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
5 years ago | |
|---|---|---|
| .. | ||
| assets | 5 years ago | |
| es | 5 years ago | |
| lib | 5 years ago | |
| HISTORY.md | 5 years ago | |
| LICENSE.md | 5 years ago | |
| README.md | 5 years ago | |
| package.json | 5 years ago | |
README.md
rc-textarea
Pretty Textarea react component used in ant.design.
Live Demo
https://react-component.github.io/textarea/
Install
Usage
import Textarea from 'rc-textarea';
import { render } from 'react-dom';
render(<Textarea />, mountNode);
API
| Property | Type | Default | Description |
|---|---|---|---|
| prefixCls | string | 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
rc-textarea is released under the MIT license.
