0.3.9 • Published 2 years ago

dw-neit-rc-textarea v0.3.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

rc-textarea

NPM version dumi npm download build status Codecov Dependencies DevDependencies bundle size

Pretty Textarea react component used in ant.design.

Live Demo

https://react-component.github.io/textarea/

Install

rc-textarea

Usage

import Textarea from 'rc-textarea';
import { render } from 'react-dom';

render(<Textarea />, mountNode);

API

PropertyTypeDefaultDescription
prefixClsstringrc-textarea
classNamestring''additional class name of textarea
styleReact.CSSProperties-style properties of textarea
autoSizeboolean | object-Height autosize feature, can be set to true\|false or an object { minRows: 2, maxRows: 6 }
onPressEnterfunction(e)-The callback function that is triggered when Enter key is pressed
onResizefunction({ width, height })-The callback function that is triggered when resize

Development

npm install
npm start

License

rc-textarea is released under the MIT license.