https://github.com/hanford/react-zipcode
micro zipcode input with validation, mobile keypad keyboard built for react
https://github.com/hanford/react-zipcode
Last synced: 4 months ago
JSON representation
micro zipcode input with validation, mobile keypad keyboard built for react
- Host: GitHub
- URL: https://github.com/hanford/react-zipcode
- Owner: hanford
- Created: 2016-08-15T19:15:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-11T00:28:50.000Z (about 6 years ago)
- Last Synced: 2024-10-12T17:09:32.896Z (6 months ago)
- Language: JavaScript
- Size: 52.7 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-zipcode
> ZIP input component for react
* Validates inputs using [zippo](https://github.com/bendrucker/zippo)
* Strips non-numeric characters
* Limits to 5 characters
* Triggers the [large numeric keypad](https://github.com/bendrucker/numeric-pattern) on mobile## Install
```
$ npm install --save react-zipcode
```## Usage
```js
import Zip from 'react-zipcode'..
render () {
console.log(`validated zip code: ${value}`)}
}
```## License
MIT © [Jack Hanford](http://jackhanford.com)