4.10.98 • Published 1 year ago

@diotoborg/quae-dolorum v4.10.98

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

1 year ago

4.10.97

1 year ago

4.10.96

1 year ago

4.10.95

1 year ago

4.10.94

1 year ago

4.10.93

1 year ago

4.10.92

1 year ago

4.10.91

1 year ago

4.10.90

1 year ago

4.10.89

1 year ago

4.10.88

1 year ago

4.10.87

1 year ago

4.10.86

1 year ago

4.10.85

1 year ago

4.10.84

1 year ago

4.10.83

1 year ago

4.10.82

1 year ago

4.10.81

1 year ago

4.10.80

1 year ago

4.10.79

1 year ago

4.10.78

1 year ago

4.10.77

1 year ago

4.10.76

1 year ago

4.10.75

1 year ago

4.10.74

1 year ago

4.10.73

1 year ago

4.10.72

1 year ago

4.10.71

1 year ago

4.10.70

1 year ago

4.10.69

1 year ago

3.10.69

1 year ago

3.10.68

1 year ago

3.10.67

1 year ago

3.10.66

1 year ago

3.10.65

1 year ago

3.10.64

1 year ago

3.9.64

1 year ago

3.9.63

1 year ago

3.9.62

1 year ago

3.9.61

1 year ago

3.9.60

1 year ago

3.9.59

1 year ago

3.9.58

1 year ago

3.9.57

1 year ago

3.9.56

1 year ago

3.9.55

1 year ago

3.9.54

1 year ago

3.8.54

1 year ago

3.8.53

1 year ago

3.8.52

1 year ago

3.8.51

1 year ago

3.8.50

1 year ago

3.8.49

1 year ago

3.8.48

1 year ago

3.8.47

1 year ago

3.8.46

1 year ago

3.8.45

1 year ago

3.7.45

1 year ago

3.7.44

1 year ago

3.7.43

1 year ago

3.7.42

1 year ago

3.7.41

1 year ago

3.7.40

1 year ago

3.7.39

1 year ago

3.6.39

1 year ago

3.6.38

1 year ago

3.6.37

1 year 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