1.0.2 • Published 3 years ago

vue-vcard v1.0.2

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

Vue-vCard

vue-vcard is a simple package that helps to generate QRcode vCards also known as digital business cards.

Installation

npm i vue-vcard

Importing Globally

You can import this package as usual, here as an example the package is imported globally.

import Vue-vcard from 'vue-vcard; 
Vue.component('vue-vcard', Vue-vcard);

Usage

  <vue-vcard 
    orgPost="00000" 
    orgStreet="Some Street" 
    orgRegion="Some Region" 
    orgCity="Some City" 
    orgCountry="LRK" 
    orgName="OrganizationName" 
    firstName="John" 
    lastName="Doe" 
    workPhone="5555555555"  
    homePhone="5555555555" 
    />

Props

Prop NameTypeDescription
firstNameString(Required) First Name
lastNameString(Required) Last Name
showQRBooleanEnable/Disable the QR Code display
sizeIntegerSize of the Generate QR Code
birthdayStringDate of birth
genderStringGender
workPhoneStringWork Phone number
homePhoneStringHome phone number
workEmailStringWork email
homeEmailStringHome email
orgNameStringOrganization name
orgTitleStringOrganization title
homeStreetStringHome street
homeCityStringHome city
homeRegionStringHome region
homePostStringHome postal Code
homeCountryStringHome country
orgStreetStringOrganization street
orgCityStringOrganization city
orgRegionStringOrganization region
orgPostStringOrganization postal Code
orgCountryStringOrganization country
  • Make sure all required props are set.

Events

EventDescription
QRStringReturns the QR code string

\ \ Feel free to contribute to this project, thanks