1.0.0 • Published 10 months ago

nvw v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Nuxt 3 VouchstarWebsdk

This is a package for quick and easy integration of Vouchstar Websdk with Nuxt 3 website

How to install

Install nuxt-vouchstar-websdk with your favorite package manager:

npm i nuxt-vouchstar-websdk

You can also use

npx nuxi@latest module add nuxt-vouchstar-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-vouchstar-websdk to the app as a module and set your vouchstarToken:

// nuxt.config.ts
export default defineNuxtConfig({
  // Attach module to nuxt
  modules: ['nuxt-vouchstar-websk'],
  // VouchstarWebsdk module options
  vouchstarWebsdk: {
    // Set your api token
    vouchstarToken: "<your-api-token-here>"
  }
})

Usage

There are two main components:

  • VouchstarBtn
  • VouchstarModal