1.0.7 • Published 6 years ago

s25-phone-input v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

Install

npm i --save s25-phone-input

Usage preact

import { PhoneInput } from 's25-phone-input'

<div>
    <PhoneInput 
        onChange={phone => console.log(phone)} 
        value='79243242211' 
        {...otherInputAttributes}
    />
</div>

Usage native js

import { PhoneInputNative } from 's25-phone-input'

const inputElement = document.querySelector('.js-native-input')
const phoneInput = new PhoneInputNative(inputElement)

phoneInput.onCange(phone => console.log(phone))

input.destroy()
 
1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago