nuxt-vstar-websdk
v1.1.2
Published
WebSDK for nuxt framework
Downloads
191
Readme
Nuxt 3 VouchstarWebsdk
This is a package for quick and easy integration of Vouchstar Websdk with Nuxt 3 website
How to install
Install nuxt-vstar-websdk
with your favorite package manager:
npm i nuxt-vstar-websdk
You can also use
npx nuxi@latest module add nuxt-vstar-websdk
That should install and attach module for your nuxt. The only thing you will have to do is set the vouchstarToken
Attach the nuxt-vstar-websdk
to the app as a module and set your vouchstarToken
:
// nuxt.config.ts
export default defineNuxtConfig({
// Attach module to nuxt
modules: ['nuxt-vstar-websk'],
// VouchstarWebsdk module options
vouchstarWebsdk: {
// Set your api token
vouchstarToken: "<your-api-token-here>"
}
})
Usage
There are two main components:
- VouchstarBtn
- VouchstarModal