Skip to content

larmbox/phone-input

Repository files navigation

larmbox/phone-input

npm license downloads

Demo

Installation

phone-input is available as an npm package:

npm install @larmbox/phone-input

phone-input can also be imported directly in the browser:

<!-- local -->
<script src="dist/index.browser.min.js"></script>

<!-- jsdelivr.net -->
<script src="https://cdn.jsdelivr.net/npm/@larmbox/phone-input/dist/index.browser.min.js"></script>

Usage

<input id="example" />

<script>
  const element = document.getElementById('example');
  phoneInput.attach(element);
</script>

Options

Contributing

Please refer to the Larmbox Open Source Community Guidelines.

License

This project is licensed under the terms of the MIT license.