rc-phone-keyboard

1.0.0 • Public • Published

rc-phone-keyboard


React PhoneKeyboard

NPM version build status Test coverage gemnasium deps node version npm download

Screenshot

Browser Support

IE Chrome Firefox Opera Safari
IE 8 + IE 8+ ✔ Chrome 31.0+ ✔ Firefox 31.0+ ✔ Opera 30.0+ ✔ Safari 7.0+ ✔

Install

rc-phone-keyboard

Usage

var PhoneKeyboard = require('rc-phone-keyboard');
var React = require('react');
var ReactDOM = require('react-dom');
ReactDOM.render(<PhoneKeyboard />, container);

Examples

npm start and then go to http://localhost:8000/examples

Online examples: http://pchange.github.io/rc-phone-keyboard/examples/

API

Props

name type default description
value string '' components value, if post like '13800138000', if will format to '138-0013-8000'
onChange Function callback when value changed initiative
className string '' additional className at container

Development

npm install
npm start

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

License

rc-phone-keyboard is released under the MIT license.

Package Sidebar

Install

npm i rc-phone-keyboard

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • shenqihui