react-zipcode

1.0.1 • Public • Published

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

Dependencies (1)

Dev Dependencies (9)

Package Sidebar

Install

npm i react-zipcode

Weekly Downloads

33

Version

1.0.1

License

MIT

Unpacked Size

6.32 kB

Total Files

12

Last publish

Collaborators

  • hanford