Skip to content

VouchstarWebSDK plugin for VUE 3

How to install

Install vue-vstar-websdk with your favorite package manager:

npm
npm install vue-vstar-websdk

Pass the vue-vstar-websdk and vouchstar-websdk.css to the app as a plugin and set your vouchstarToken:

main.ts
import { createApp } from 'vue'
import App from './App.vue'
import { VouchstarWebsdk } from 'vue-vstar-websdk'
import "vue-vstar-websdk/dist/style.css"
const app = createApp(App)
app.use(VouchstarWebsdk, {
vouchstarToken: '<your-vouchstar-token-here>'
})
app.mount('#app')

Usage

There are two main components: