Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

React component for entering and validating international telephone numbers

Notifications You must be signed in to change notification settings

EvanSimpson/react-telephone-input

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

175 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple react telephone input

This is a simplified fork of https://github.com/mukeshsoni/react-telephone-input.

$ npm install react-telephone-input-simple
var ReactTelInput = require('react-telephone-input-simple');
React.render(<ReactTelInput
                defaultCountry="in"
                autoFocus="true"
                placeholder="1 (415) 992-5555"
                onChange={handleInputChange}/>
                onBlur={handleInputBlur}
                document.getElementById('my-container'));

Features

  • Automatically format the number as the user types
  • Typing a different dial code will automatically update the displayed flag

You can try the app by downloading everything and running the commands given below -

$ npm install
$ npm start

go to your browser and type `http://localhost:8000`

About

React component for entering and validating international telephone numbers

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 72.3%
  • CSS 26.8%
  • HTML 0.9%