Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
react-contact-number-input
Advanced tools
Welcome to react-contact-number-input 👋 <img alt="License: MIT" src="https://img.shields
International phone number input component for react
npm install react-contact-number-input
👤 vaibhav-systango
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}
/>;
Name | Type | Description |
---|---|---|
onChange | func | required, returns the object with the details of the number |
countryCode | string | default value= 'us', selected country phone code. |
placeholder | string | default value= 'Enter Mobile Number' ,change the value of phone input placeholder |
containerClass | string | default value= '' ,change the phone input styling |
disabled | boolean | default value= false ,handles the input to be disabled or not |
At least React@17.0.2
is required due to hooks
usage in the dependency
FAQs
Welcome to react-contact-number-input 👋 <img alt="License: MIT" src="https://img.shields
The npm package react-contact-number-input receives a total of 3,210 weekly downloads. As such, react-contact-number-input popularity was classified as popular.
We found that react-contact-number-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.