4.10.98 • Published 10 months ago

@diotoborg/quae-dolorum v4.10.98

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

react-international-phone

šŸ¤™ International phone input component for React

npm-version build-status-badge install-size-badge codecov downloads Semantic Release stars

Live demo: Storybook

demo-gif

Features

  • šŸ˜Ž Easy to integrate - Just import and use, no need for the initial setup. Integrate with any UI library using a headless hook.
  • šŸ” Country guessing - Just start typing and the component will guess the country and format the phone. Country flags are rendered using Twemoji.
  • ✨ Lightweight - Low bundle size, no third-party dependencies.
  • 🌈 Easy to customize - Customize styles and component behavior using props.
  • ⌨ Caret position handling - Typing in the middle of the input, selection and deletion feels naturally.
  • āœ”ļø Validation - Easily validate entered phone numbers using provided functions.

Installation

$ npm i react-international-phone

Basic usage

import { useState } from 'react';
import { PhoneInput } from 'react-international-phone';
import 'react-international-phone/style.css';

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

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

Documentation

Find the full API reference on official documentation.

Migration

You can encounter some breaking changes after update between major versions.

Checkout migration documents that contain a list of breaking changes and ways to migrate: Update from v2 to v3 Update from v1 to v2

mergeremovedeleteargsecmascriptlibphonenumbershebangperformanceES8fullwidthsignedTypeScriptpackage managerless.jshashclassnamesTypedArrayjsoncommandcontainsescapeemityupargumentless cssStreamsvarpromiserapidschemeassertserrordefinePropertyhasnopeponyfilllocaldatastructureenderURLautoprefixerreducerMaptextObservablesqsscheme-validationquerystringlanguageArray.prototype.flatconsoleminimalhttphandlerloadingtrimStartstatususer-streamstdddescriptorsentriesObject.isexpressionpredictableStreamtoolkitpluginECMAScript 2018functionalhttpsnegative zerocommand-lineReactiveXintrinsicesartchildbannerwindowYAMLloggingkinesisECMAScript 3findoptionstylingsetsymlinkcodesSymboltypescriptreact-hookssymbolformES2017Pushmkdirsutilitiesglobalsttyvalueelectronconcatwalkpoint-freeregulartestingflagsArrayfastclonecryptopropertyECMAScript 7es-abstracttoStringTagterminalObject.valuesglobalslotnumbersqsgetOwnPropertyDescriptorcorepathvaluesclonehas-ownbundlertransporteffect-tsUint8Arrayspinnerreal-timebyteLengthArray.prototype.flattenimporteslintpluginstyleguideinternalconsumematchagentexpressajaxoutputmonorepoes2017ansicall-boundtsrecursiveelasticachedescriptionkey3dreactES2016jwtRxshelltoolsopenssltrimLeftcloudwatchESnextgetgroupcloudfronteveryidlees-shim APItelephoneinspectpinoclassesless compileres-shimsES7springvpcasciireact animationserializerprettyWebSocketstoArraynameregular expressionwarningES2023globUint16ArrayES6hasOwneslint-pluginebslruprivate dataargvECMAScript 2023ES2015lesslesscsscolorsprotofetcheventsbyteOffsettranspilermkdirphooksbrowserpropwafcurlStyleSheetmapreducereducePromiseAsyncIteratormulti-package
4.10.98

10 months ago

4.10.97

10 months ago

4.10.96

10 months ago

4.10.95

10 months ago

4.10.94

10 months ago

4.10.93

10 months ago

4.10.92

10 months ago

4.10.91

10 months ago

4.10.90

10 months ago

4.10.89

10 months ago

4.10.88

10 months ago

4.10.87

10 months ago

4.10.86

10 months ago

4.10.85

10 months ago

4.10.84

10 months ago

4.10.83

10 months ago

4.10.82

10 months ago

4.10.81

11 months ago

4.10.80

11 months ago

4.10.79

11 months ago

4.10.78

11 months ago

4.10.77

11 months ago

4.10.76

11 months ago

4.10.75

11 months ago

4.10.74

11 months ago

4.10.73

11 months ago

4.10.72

11 months ago

4.10.71

11 months ago

4.10.70

11 months ago

4.10.69

11 months ago

3.10.69

11 months ago

3.10.68

11 months ago

3.10.67

11 months ago

3.10.66

11 months ago

3.10.65

11 months ago

3.10.64

11 months ago

3.9.64

11 months ago

3.9.63

11 months ago

3.9.62

11 months ago

3.9.61

11 months ago

3.9.60

11 months ago

3.9.59

11 months ago

3.9.58

11 months ago

3.9.57

11 months ago

3.9.56

11 months ago

3.9.55

11 months ago

3.9.54

11 months ago

3.8.54

12 months ago

3.8.53

12 months ago

3.8.52

12 months ago

3.8.51

12 months ago

3.8.50

12 months ago

3.8.49

12 months ago

3.8.48

12 months ago

3.8.47

12 months ago

3.8.46

12 months ago

3.8.45

12 months ago

3.7.45

12 months ago

3.7.44

12 months ago

3.7.43

12 months ago

3.7.42

12 months ago

3.7.41

12 months ago

3.7.40

12 months ago

3.7.39

12 months ago

3.6.39

12 months ago

3.6.38

12 months ago

3.6.37

12 months ago

2.6.37

1 year ago

1.6.37

1 year ago

1.6.36

1 year ago

1.6.35

1 year ago

1.6.34

1 year ago

1.6.33

1 year ago

1.6.32

1 year ago

1.6.31

1 year ago

1.6.30

1 year ago

1.6.29

1 year ago

1.5.29

1 year ago

1.5.28

1 year ago

1.5.27

1 year ago

1.5.26

1 year ago

1.5.25

1 year ago

1.5.24

1 year ago

1.5.23

1 year ago

1.5.22

1 year ago

1.5.21

1 year ago

1.5.20

1 year ago

1.5.19

1 year ago

1.4.19

1 year ago

1.3.19

1 year ago

1.3.18

1 year ago

1.3.17

1 year ago

1.3.16

1 year ago

1.3.15

1 year ago

1.2.15

1 year ago

1.2.14

1 year ago

1.2.13

1 year ago

1.2.12

1 year ago

1.2.11

1 year ago

1.2.10

1 year ago

1.2.9

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago