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

1.0.15 • Public • Published

Phone Input React (TypeScript)

Highly customizable phone input component with auto formatting.

npm version npm downloads PRs Welcome travis build

animation

Installation

npm i phone-input-react --save

Usage

import PhoneInput from 'phone-input-react'
<PhoneInput
  phoneNumber: string;
  setPhoneNumber: (v: string|number) => void;
  defaultFlag?: string;
  startingSymbol?: string;
  className?: string;
/>

Contributing

  • Code style changes not allowed
  • Do not create issues about incorrect or missing country masks (of already present countries) or absent area codes (they will be closed). Only create issues if the subject is an actual mechanism that is not present in the component. Otherwise create a PR with a link that proves the correctness of your newly suggested mask or list of area codes
  • Do not send new languages

License

GitHub license

Based on libphonenumber-js

Package Sidebar

Install

npm i phone-input-react

Weekly Downloads

2

Version

1.0.15

License

MIT

Unpacked Size

1.59 MB

Total Files

12

Last publish

Collaborators

  • m-umar
  • wajeehaslam
  • im.ihtisham.arif