1.2.5 • Published 2 years ago

react-international-phone-number-input v1.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

  • Will add
1.2.0

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago