Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
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 2,155 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.