0.2.0 • Published 5 years ago

@talixo/phone-input v0.2.0

Weekly downloads
15
License
MIT
Repository
github
Last release
5 years ago

Talixo PhoneInput

UI component which represents input to provided phone number

How to install

Package is available as @talixo/phone-input in NPM registry, so you can use it in your project using npm install @talixo/phone-input --save or yarn add @talixo/phone-input.

Requirements

Your package should additionally have some extra dependencies:

  • @talixo/combo-box: ^0.1.0
  • @talixo/country-flag: ^0.1.0
  • @talixo/shared: ^0.1.0
  • country-telephone-data: ^0.5.5
  • prop-types: ^15.6.1
  • react: ^16.2.0
  • react-dom: ^16.2.0
  • react-text-mask: 5.4.1

These packages are required by @talixo/phone-input, but you have to install them manually, to avoid having different versions of these in your application.

Supported props

This component allows any properties which can be added to div element. Additionally, handles some differently:

Property nameTypeDefaultDescription
classNamestringn/aadditional class name passed to wrapper
errorbooleanfalseindicates that input has error
valuestringself-controlledphone number to show
placeholderstringn/aplaceholder to show when there is no value
onChangefunctionn/aevent handler for changed value
onFocusfunctionn/aevent handler fired when input has been focused
onBlurfunctionn/aevent handler fired when input lost focus

Changelog

  • 0.2.0 - add mask for country prefix
  • 0.1.0 - initial version
1.0.0-alpha.35

5 years ago

1.0.0-alpha.31

6 years ago

1.0.0-alpha.30

6 years ago

1.0.0-alpha.27

6 years ago

1.0.0-alpha.24

6 years ago

1.0.0-alpha.21

6 years ago

1.0.0-alpha.20

6 years ago

1.0.0-alpha.19

6 years ago

1.0.0-alpha.17

6 years ago

1.0.0-alpha.16

6 years ago

1.0.0-alpha.12

6 years ago

1.0.0-alpha.7

6 years ago

1.0.0-alpha.6

6 years ago

1.0.0-alpha.5

6 years ago

1.0.0-alpha.4

6 years ago

1.0.0-alpha.2

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago