Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-contact-number-input

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4K
increased by4.05%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 11 Mar 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc