International Phone Number Input Component For React

Description:

A simple international phone number input component for React applications.

How to use it:

1. Install and import the component.

# NPM
$ npm i react-contact-number-input
import { PhoneInput } from "react-contact-number-input";

2. Create a basic international telephone number input.

<PhoneInput onChange={function noRefCheck(){}} />

3. More component props.

<PhoneInput
  disabled={disabled}
  containerClass={containerClass}
  countryCode={currentCountryCode}
  onChange={handleOnChange}
  placeholder={placeholder}
/>;

Preview:

International Phone Number Input Component For React

Add Comment