Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-tel-input

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-tel-input

Vue International Telephone Input

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
108K
increased by3.81%
Maintainers
1
Weekly downloads
 
Created
Source

vue-tel-input

International Telephone Input Boilerplate with Vue ((integrated with VueFormGenerator).

Checkout Demo at Codesandbox.

In-action GIF

Installation

npm install --save vue-tel-input

Usage

  • As a standalone component:
    Import vue-tel-input into your Vue component and use as a normal component:

    <template>
    ...
      <tel-input></tel-input>
    ...
    <template>
    
    <script>
    import TelInput from '../vue-tel-input';   
    export default {
      ...
      components: {
        TelInput
      },
    };
    </script>
    
  • As a field of VueFormGenerator

    1. Register vue-tel-input as a global component:

       import vueTelInput from "../vue-tel-input.vue";
       ...
       Vue.component("fieldTelephone", vueTelInput);
      

      !! As the naming convention for custom field in VueFormGenerator, you need to put the name of the component as: `field.

    2. Now you can you it in your schema:

      var schema: {
       fields: [{
         type: "telephone",
         label: "Phone Number",
         model: "phone"
       }]
      };
      

    For more info: vue-form-generator/custom-fields

Highlights & Credits

Example App Build Setup

npm install             # install dependencies
npm run dev             # serve with hot reload at localhost:8080
npm run build           # build for production with minification
npm run build --report  # build for production and view the bundle analyzer report
npm run unit            # run unit tests
npm test                # run all tests

made with ❤ by Steven.

FAQs

Package last updated on 27 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc