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

react-international-phone

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-international-phone

International phone input component for React

  • 1.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
162K
increased by15.71%
Maintainers
1
Weekly downloads
 
Created
Source

react-international-phone

🤙 International phone input component for React

demo

build-status

Live demo: Storybook

Features

  • 😎 Easy to integrate - Just import and use, no need for the initial setup.
  • 🔍 Country guessing - Just start typing and the component will guess the country.
  • 🏳️ Country flags - Country flags are rendered using Twemoji.
  • Caret position handling - Typing in the middle of the input, selection and deletion feels naturally.
  • Lightweight - Low bundle size, no third-party dependencies.
  • 🌈 Easy to customize - Customize styles and component behavior using props.

Installation

$ npm i react-international-phone

Basic usage

import { useState } from 'react';
import { PhoneInput } from 'react-international-phone';

const App = () => {
  const [phone, setPhone] = useState('');

  return (
    <div>
      <PhoneInput initialCountry="ua" phone={phone} onChange={setPhone} />
    </div>
  );
};

Documentation

Find the full API reference on official documentation.

Keywords

FAQs

Package last updated on 10 Nov 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