Skip to content

A simple react component to format phone number as the user types

License

Notifications You must be signed in to change notification settings

maxcmoi89/react-phone-input

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-phone-input

A simple react component to format a phone number as the user types.

alt tag

##Installation: npm install react-phone-input --save

##Usage:

React.render(
  <ReactPhoneInput defaultCountry={'us'} />,
  document.getElementById('content'));

##Options:

Name Description
defaultCountry country code to initialize the component
excludeCountries array of country codes to be excluded e.g. ['cu','cw','kz']
onlyCountries array of country codes to be included e.g. ['cu','cw','kz']
preferredCountries array of country codes to be preferred (highlighted at the top) e.g. ['cu','cw','kz']

##License MIT

About

A simple react component to format phone number as the user types

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 71.0%
  • CSS 28.2%
  • HTML 0.8%