react-input React component
[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]
[![Coveralls][coveralls-badge]][coveralls]
React input component.
``javascript
import { Input } from "@crpt/react-input";
alert("newVal:", newVal)} />
`
| PropName | Description | Example |
|---|---|---|
| disabled: Boolean | Can be disabled. | |
| isError: Boolean | Changes colors to error. | |
| defaultValue: String | Preset value. | |
| placeholder: String | Placeholder value. | | alert(val)} />
| onChange: Function | Callback for change event. | | alert(val)} />
| onUpdate: Function | Fires on enter press or blur. | | alert(val)} />
| onEnterKey: Function | Fires on enter key press. | |
| type: String | Input type attribute. For example type="text" and type="password". | |} />
| rightIcon: String | Right icon. | |
| mask: String | Input mask. | |` |
| maskOptions: Object | Input mask options. |
[build-badge]: https://img.shields.io/travis/user/repo/master.png?style=flat-square
[build]: https://travis-ci.org/user/repo
[npm-badge]: https://img.shields.io/npm/v/npm-package.png?style=flat-square
[npm]: https://www.npmjs.org/package/npm-package
[coveralls-badge]: https://img.shields.io/coveralls/user/repo/master.png?style=flat-square
[coveralls]: https://coveralls.io/github/user/repo