Socket
Socket
Sign inDemoInstall

react-contact-number-input

Package Overview
Dependencies
15
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-contact-number-input

Welcome to react-contact-number-input 👋 <img alt="License: MIT" src="https://img.shields


Version published
Weekly downloads
480
increased by43.28%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Welcome to react-contact-number-input 👋

Version License: MIT

International phone number input component for react

Install

npm install react-contact-number-input

Author

👤 vaibhav-systango

Usage

You need to import ReactCountryInput from package react-country-input with the props using below-

Code Example:

import { PhoneInput } from "react-contact-number-input";
<PhoneInput
  disabled={disabled}
  containerClass={containerClass}
  countryCode={currentCountryCode}
  onChange={handleOnChange}
  placeholder={placeholder}
/>;
[Demo ] (https://react-contact-number-input.web.app/)

Component Props

NameTypeDescription
onChangefuncrequired, returns the object with the details of the number
countryCodestringdefault value= 'us', selected country phone code.
placeholderstringdefault value= 'Enter Mobile Number' ,change the value of phone input placeholder
containerClassstringdefault value= '' ,change the phone input styling
disabledbooleandefault value= false ,handles the input to be disabled or not

Notes on Requirements

At least React@17.0.2 is required due to hooks usage in the dependency

Keywords

FAQs

Last updated on 11 Mar 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc