4.3.64 • Published 1 year ago

@zitterorg/ex-dolorum v4.3.64

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 v3 to v4 Update from v2 to v3 Update from v1 to v2

fasturles7deepcopyreact animationgraphqlemojibufferES2017assertsfast-deep-copysharedES2023mkdirpsuperagentformatES6invariantES2021formattingglobchailook-upletartemitfull-widthposecharactermakeeventEmitterES8ECMAScript 2015Reflect.getPrototypeOfcollection.es6toStringTaghashbundlingdeepclonelintbinchinesecolorsvestStreamsObject.istestergesturesargsupconsumetddes5cssbyteLengthfind-uphasOwnESnextObjectobjroutingnameArray.prototype.findLasthelpersfigletuninstallfunctionsparentWeakSetregexpspawnflatreact-testing-libraryguidkeyscjkbytegetoptformfindLastIndexmetadataES2018BigUint64ArrayloadingrequirecomparestylebyteOffsetaccessibilityprivatepostcssstablechromiumtacitgdprassignassertiterateuuidquotefastcopyutil.inspecttestingES2015amazoni18nwalksortedArray.prototype.flattenlistenersECMAScript 5rangeerrorrequestpoint-freeoffsetfantasy-landsimpledbtransportbundlertoolkittapFunction.prototype.namepolyfillserializeparentsyamljapaneseconcates8fast-deep-clonenegativebindmkdirsminimaliambrowserslistspinnerinferencetypestelephonesymbolstoSortedpushfindLastdataViewreadablestreamECMAScript 2020defineProperty0colourdotenvsideenvflattenregularaccessorcallboundpopmotiontoobjectbrowsercommandstringtypecachekeydependency managerwaityuptypedarrayscompilerfixed-widthruntimeespreetextairbnb3dqueueMicrotaskhttpStyleSheetECMAScript 2017fullnativenpmcallArray.prototype.flatMapnodestructuredClonequeue256genericscharacterscodesjestdeep-cloneRxJSinputArray.prototype.containswebECMAScript 2018removeappsameValueZeroexpressiontrimarrayspringMapcreateistanbulCSSshebangtypedarrayunicodeuser-streamsrm -frprefixjavascriptcore-jseventsInt16ArraywgetglobalThisinrobustfast-copyttyjsdomreact-hook-formfindupwriteesbeanstalkcloudtrailES2019environmentwritableapollomoduleielocationastscheme-validationkinesisRegExp#flagsfastcloneresolvetrimLeftdirectoryTypedArraypathprotoObject.keystestbusysearchpostcss-pluginexpresstypeofWebSocketsstringifyisboundcheckelectronsetreworkfsECMAScript 2023propertiesperformanceObject.valuestypesafeendpointschemeswfmodulesmulti-packageutilponyfillrestful$.extendimmutableloadbalancingawesomesaucebannersource mapexecfileidentifiersajvomitfile systemterminalxtermelasticachepositivepyyamlUnderscorehttpsasyncglobal objectchildjstraverseschemaforEachdeep-copyECMAScript 2022propertyjQuerysomebabel-corefetchmruYAMLebspreprocessorUint8ArrayArrayBufferwidthjasminedirrandomsqsUint32ArraykarmasliceeventDispatcherglobalatomlocalformsgitignoreautoprefixerspecstreamglobalsawstoolsrm -rfreadenderstreamsbinariesArrayworkervalidatorString.prototype.trimclassesInt8ArraytslibvalidationdayjsfeedStreamqueryjshintregexTypeBoxcoercibleavafastifyserializergroupmomentsharedarraybufferbufferstrimEndcloneramdavpcanimationparserIteratorloggingfunction.lengthObject.fromEntriesindicatores-abstractframer__proto__fnmatchtypeerrorES5
4.3.64

1 year ago

4.3.60

1 year ago

4.3.63

1 year ago

4.3.62

1 year ago

4.3.61

1 year ago

4.3.57

1 year ago

4.3.59

1 year ago

4.3.58

1 year ago

4.3.56

1 year ago

4.3.55

1 year ago

4.3.54

1 year ago

4.3.53

1 year ago

4.3.52

1 year ago

4.3.51

1 year ago

4.3.50

1 year ago

4.0.19

1 year ago

4.0.21

1 year ago

4.0.20

1 year ago

4.0.23

1 year ago

4.0.22

1 year ago

3.0.17

1 year ago

4.3.42

1 year ago

4.3.41

1 year ago

4.3.40

1 year ago

4.3.46

1 year ago

4.3.45

1 year ago

4.3.44

1 year ago

4.3.43

1 year ago

4.2.30

1 year ago

4.1.27

1 year ago

4.3.49

1 year ago

4.1.28

1 year ago

4.3.48

1 year ago

4.1.29

1 year ago

4.3.47

1 year ago

4.1.23

1 year ago

4.1.24

1 year ago

4.1.25

1 year ago

4.1.26

1 year ago

4.3.31

1 year ago

4.3.30

1 year ago

2.0.16

1 year ago

4.3.35

1 year ago

4.3.34

1 year ago

4.3.33

1 year ago

4.3.32

1 year ago

4.3.39

1 year ago

4.3.38

1 year ago

4.2.29

1 year ago

4.3.37

1 year ago

3.0.18

1 year ago

4.3.36

1 year ago

3.0.19

1 year ago

2.0.17

1 year ago

2.0.15

1 year ago

2.0.13

1 year ago

2.0.14

1 year ago

2.0.11

1 year ago

2.0.12

1 year ago

1.0.9

1 year ago

2.0.10

1 year ago

1.0.10

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago