@feizheng/react-textarea
v1.0.0
Published
Textarea with text limit for react.
Downloads
4
Readme
react-textarea
Textarea with text limit for react.
installation
npm install -S @feizheng/react-textarea
update
npm update @feizheng/react-textarea
properties
| property | type | default | description | | --------- | ------ | ------- | ----------- | | className | String | - | - | | value | - | - | - | | onChange | - | - | - |
usage
- import css
@import "~@feizheng/react-textarea/dist/style.scss";
// customize your styles:
$react-textarea-options: ()
- import js
import React from 'react';
import ReactDOM from 'react-dom';
import ReactTextarea from '@feizheng/react-textarea';
// your app:
class App extends React.Component{
render(){
return (
<ReactTextarea />
)
}
}
// render to dom:
ReactDOM.render(<App/>, document.getElementById('app'));
documentation
- https://afeiship.github.io/react-textarea/
resources
- https://github.com/jackmoore/autosize