
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
international-phone-input-react
Advanced tools
A simple and customizable react phone number dropdown component. with country flags and dialCodes.
$ npm i international-phone-input-react --save
import { PhoneInput } from "international-phone-input-react";
<PhoneInput
phoneNumber={phoneNumber} setPhoneNumber={phoneNumber}
/>
| Name | Type | Description | Is Required | Example |
|---|---|---|---|---|
| phoneNumber | string | controlled field value | required | "569 23 12 123" |
| setPhoneNumber | function | phone onChange handler | required | (e) => { setPhoneNumber(e.target.value)} |
| error | string | error message | optional | |
| placeholder | string | phone fields placeholder | optional | enter phone.. |
| searchPlaceholder | string | search field placeholder | optional | Search... |
| defaultCountry | string | default country code | optional | "US" |
| except | array | If you want to remove some country to the list. | optional | ["AF", "AL"] |
| only | array | only specific countries | optional | ["BD", "US", "GE"] |
| animatedPlaceholder | boolean | disable/enable placeholder animation | optional |
If you face any issues, missing data or wrong data about country, you are welcome to create an issue.
FAQs
This library is made by a Button and a Map components.
The npm package international-phone-input-react receives a total of 14 weekly downloads. As such, international-phone-input-react popularity was classified as not popular.
We found that international-phone-input-react 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
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.