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