1.0.7 • Published 5 years ago

s25-phone-input v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
5 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

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago