vue-vstar-websdk
v1.0.7
Published
A Vouchstar WebSdk for Vue.js
Downloads
20
Maintainers
Readme
Vue 3 VouchstarWebsdk
This is a package for quick and easy integration of Vouchstar Websdk with Vue 3 website
How to install
Install vue-vstar-websdk
with your favorite package manager:
npm i vue-vstar-websdk
Pass the vue-vstar-websdk
to the app as a plugin and set your vouchstarToken
:
// main.ts
import { createApp } from 'vue'
import { VouchstarWebsdk } from 'vue-vstar-websdk'
import App from './App.vue'
const app = createApp(App)
app.use(VouchstarWebsdk, {
vouchstarToken: '<your-vouchstar-token-here>'
})
app.mount('#app')
Usage
There are two main components:
- VouchstarBtn
- VouchstarModal