JSPM

xst-textarea

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q18312F
  • License MIT

Pretty Textarea react component used in tinper-next

Package Exports

  • xst-textarea
  • xst-textarea/es/index.js
  • xst-textarea/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (xst-textarea) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

Property Type Default Description
prefixCls string xst-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 }
maxlength Number - 用户最多可以输入的字符个数
allowInputOverMax boolean false 超出 maxlength 后是否允许继续输入
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

xst-textarea is released under the MIT license.