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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    3
  • 1.0.0
    18

Package Sidebar

Install

npm i react-zipcode

Weekly Downloads

20

Version

1.0.1

License

MIT

Unpacked Size

6.32 kB

Total Files

12

Last publish

Collaborators

  • hanford