react-zipcode

> ZIP input component for react


Keywords
react, zip, zipcode input, react-zipcode
License
MIT
Install
npm install react-zipcode@1.0.1

Documentation

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