unis_crm/frontend1/node_modules/rc-textarea
kangwenjing 8606a02971 0326 2026-03-26 17:29:55 +08:00
..
assets 0326 2026-03-26 17:29:55 +08:00
es 0326 2026-03-26 17:29:55 +08:00
lib 0326 2026-03-26 17:29:55 +08:00
LICENSE.md 0326 2026-03-26 17:29:55 +08:00
README.md 0326 2026-03-26 17:29:55 +08:00
package.json 0326 2026-03-26 17:29:55 +08:00

README.md

rc-textarea

NPM version dumi npm download build status Codecov 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

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.