react-phone-number-input-field

0.2.0Β β€’Β PublicΒ β€’Β Published

Welcome to react-phone-number-input-field πŸ‘‹

Version

Phone input component with country code and phone number masking with errors

🏠 Homepage

Install

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

Usage

import PhoneInputField from 'react-phone-number-input-field';

  <PhoneInputField
        value={value}
        onChange={(e) => setValue(e.target.value)}
        placeholder={'Enter your number'}
        id={'phone-number-input'}
      />

Options

Name Type Description
classname string custom classname
defaultCountry string initial country
placeholder string custom placeholder
onlyCountries array country codes to be included
excludeCountries array country codes to be excluded

Author

πŸ‘€ Noopur Chhajed

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❀️ by readme-md-generator

Readme

Keywords

none

Package Sidebar

Install

npm i react-phone-number-input-field

Weekly Downloads

1

Version

0.2.0

License

none

Unpacked Size

70.1 kB

Total Files

21

Last publish

Collaborators

  • noopurchhajed