Skip to content

Repository files navigation

rc-textarea

NPM versionduminpm downloadbuild statusCodecovbundle size

Pretty Textarea react component used in ant.design.

Live Demo

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

Install

rc-textarea

Usage

importTextareafrom'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.

About

React Textarea

Resources

Stars

33 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages

Generated from react-component/footer