@feizheng/react-input
v1.0.0
Published
Pure input for react.
Readme
react-input
Pure input for react.
installation
npm install -S @feizheng/react-inputupdate
npm update @feizheng/react-inputproperties
| property | type | default | description | | --------- | -------- | ------- | ----------- | | className | String | - | - | | value | String | - | - | | onChange | Function | Noop | - |
usage
- import css
@import "~@feizheng/react-input/dist/style.scss";
// customize your styles:
$react-input-options: ()- import js
import React from 'react';
import ReactDOM from 'react-dom';
import ReactInput from '@feizheng/react-input';
// your app:
class App extends React.Component{
render(){
return (
<ReactInput />
)
}
}
// render to dom:
ReactDOM.render(<App/>, document.getElementById('app'));documentation
- https://afeiship.github.io/react-input/
