This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

react-international-phone-number-input
TypeScript icon, indicating that this package has built-in type declarations

1.2.5 • Public • Published

React International Phone Number Input

You can access the basic example from that CodeSandbox Link

Install

npm:

npm install react-international-phone-number-input --save

yarn:

yarn add react-international-phone-number-input

and add CSS file to your app:

import 'react-international-phone-number-input/dist/index.css'

Usage

import React, { Component } from 'react'
import { PhoneInput } from 'react-international-phone-number-input'
import 'react-international-phone-number-input/dist/index.css'

class Example extends Component {
  render() {
    return (
    <PhoneInput
        containerProps={{
            //...props here
        }}
        defaultCountry='KW'
        dropdownButtonProps={{
        //...props here
        }}
        disableCountrySelect
        flagProps={{
        //...props here
        }}
        inputProps={{
        //...props here
        }}
        onInputChange={(values) => {
          console.log(values)
        }}
        prepend={
            <div>
        // prepend react element here
        </div>
        }
      />)
  }
}

Base Features

  • RTL Support
  • Open Source
  • Prepend element for use cases
  • CRA & Next.js support

Support

Feel free to contact me via borabiriciksoftware@gmail.com for any purposes.

TO-DO

  • [x] Will add

Package Sidebar

Install

npm i react-international-phone-number-input

Weekly Downloads

1

Version

1.2.5

License

MIT

Unpacked Size

85.3 kB

Total Files

19

Last publish

Collaborators

  • bora.biricik