4.10.98 • Published 2 years ago

@diotoborg/quae-dolorum v4.10.98

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

4.10.97

2 years ago

4.10.96

2 years ago

4.10.95

2 years ago

4.10.94

2 years ago

4.10.93

2 years ago

4.10.92

2 years ago

4.10.91

2 years ago

4.10.90

2 years ago

4.10.89

2 years ago

4.10.88

2 years ago

4.10.87

2 years ago

4.10.86

2 years ago

4.10.85

2 years ago

4.10.84

2 years ago

4.10.83

2 years ago

4.10.82

2 years ago

4.10.81

2 years ago

4.10.80

2 years ago

4.10.79

2 years ago

4.10.78

2 years ago

4.10.77

2 years ago

4.10.76

2 years ago

4.10.75

2 years ago

4.10.74

2 years ago

4.10.73

2 years ago

4.10.72

2 years ago

4.10.71

2 years ago

4.10.70

2 years ago

4.10.69

2 years ago

3.10.69

2 years ago

3.10.68

2 years ago

3.10.67

2 years ago

3.10.66

2 years ago

3.10.65

2 years ago

3.10.64

2 years ago

3.9.64

2 years ago

3.9.63

2 years ago

3.9.62

2 years ago

3.9.61

2 years ago

3.9.60

2 years ago

3.9.59

2 years ago

3.9.58

2 years ago

3.9.57

2 years ago

3.9.56

2 years ago

3.9.55

2 years ago

3.9.54

2 years ago

3.8.54

2 years ago

3.8.53

2 years ago

3.8.52

2 years ago

3.8.51

2 years ago

3.8.50

2 years ago

3.8.49

2 years ago

3.8.48

2 years ago

3.8.47

2 years ago

3.8.46

2 years ago

3.8.45

2 years ago

3.7.45

2 years ago

3.7.44

2 years ago

3.7.43

2 years ago

3.7.42

2 years ago

3.7.41

2 years ago

3.7.40

2 years ago

3.7.39

2 years ago

3.6.39

2 years ago

3.6.38

2 years ago

3.6.37

2 years ago

2.6.37

2 years ago

1.6.37

2 years ago

1.6.36

2 years ago

1.6.35

2 years ago

1.6.34

2 years ago

1.6.33

2 years ago

1.6.32

2 years ago

1.6.31

2 years ago

1.6.30

2 years ago

1.6.29

2 years ago

1.5.29

2 years ago

1.5.28

2 years ago

1.5.27

2 years ago

1.5.26

2 years ago

1.5.25

2 years ago

1.5.24

2 years ago

1.5.23

2 years ago

1.5.22

2 years ago

1.5.21

2 years ago

1.5.20

2 years ago

1.5.19

2 years ago

1.4.19

2 years ago

1.3.19

2 years ago

1.3.18

2 years ago

1.3.17

2 years ago

1.3.16

2 years ago

1.3.15

2 years ago

1.2.15

2 years ago

1.2.14

2 years ago

1.2.13

2 years ago

1.2.12

2 years ago

1.2.11

2 years ago

1.2.10

2 years ago

1.2.9

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago