react-zipcode
v1.0.1
Published
> ZIP input component for react
Downloads
118
Maintainers
Readme
react-zipcode
ZIP input component for react
- Validates inputs using zippo
- Strips non-numeric characters
- Limits to 5 characters
- Triggers the large numeric keypad on mobile
Install
$ npm install --save react-zipcode
Usage
import Zip from 'react-zipcode'
..
render () {
<Zip onValue={(value) => console.log(`validated zip code: ${value}`)}
}
License
MIT © Jack Hanford