Complexity Score
Low
Open Issues
7
Dependent Projects
49
Weekly Downloadsglobal
1,446,162
License
- MIT
- Yesattribution
- Permissivelinking
- Permissivedistribution
- Permissivemodification
- Nopatent grant
- Yesprivate use
- Permissivesublicensing
- Notrademark grant
Downloads
Loading Weekly Download Data
Readme
rc-textarea
Pretty Textarea react component used in ant.design.
Live Demo
https://react-component.github.io/textarea/
Install
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 totrue|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.
Dependencies
Loading dependencies...
CVE IssuesActive
0
Scorecards Score
4.20
Test Coverage
99.00%
Follows Semver
Yes
Github Stars
28
Dependenciestotal
0
DependenciesOutdated
0
DependenciesDeprecated
0
Threat Modelling
No
Repo Audits
No
Learn how to distribute rc-textarea in your own private NPM registry
$npm config set registry
https://npm.cloudsmith.com/owner/repo
/Processing...
✓Done
$npm install rc-textarea
/Processing...
✓Done
49 Releases
NPM on Cloudsmith