Skip to content

📞 Highly customizable phone input component with auto formatting

License

Notifications You must be signed in to change notification settings

samhuk/react-phone-input-2

 
 

Repository files navigation

react-phone-input-3

Installation

npm install react-phone-input-3 --save

Fork of react-phone-input-2 by bl00mber, adding extra features that have been requested:

  • Additional <ReactPhoneInput /> attribute -> numberTrailing: string. This increases the maximum inputable length by {numberTrailing}.

Usage:

import { ReactPhoneInput } from 'react-phone-input-3'
React.render(
  <ReactPhoneInput
    defaultCountry={'us'}
    onChange={handleOnChange}
    numberTrailing={10}
  />,
  document.getElementById('root')
);

For full usage of this, see react-phone-input-2.

About

📞 Highly customizable phone input component with auto formatting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.6%
  • CSS 20.4%
  • HTML 2.0%