1.0.2 • Published 2 years ago

xst-textarea v1.0.2

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

xst-textarea

dumi build status Codecov

Pretty Textarea react component used in ant.design.

Live Demo

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

Usage

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

render(<Textarea />, mountNode);

API

PropertyTypeDefaultDescription
prefixClsstringxst-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 }
maxlengthNumber-用户最多可以输入的字符个数
allowInputOverMaxbooleanfalse超出 maxlength 后是否允许继续输入
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

xst-textarea is released under the MIT license.