Highly customizable phone input component with auto formatting.
npm i phone-input-react --save
import PhoneInput from 'phone-input-react'
<PhoneInput
phoneNumber: string;
setPhoneNumber: (v: string|number) => void;
defaultFlag?: string;
startingSymbol?: string;
className?: string;
/>
- 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
Based on libphonenumber-js