Frontend
Vue.js
Overview
Stigg’s Vue SDK is a Javascript library for embedding self-service components in Vue 3 apps. It is based on React SDK components under the hood.
Installing the SDK
Install the @stigg/vue-sdk
package in your project using one of the below method:
From npm:
From yarn:
Retrieving the client API key
In the Stigg app, go to Settings > Account > Environments.
Copy the Client API key of the relevant environment.
Getting started
Import the library’s CSS styles:
Configure the SDK by wrapping your application in StiggProvider
:
Rendering widgets
Introduce self-service and drive in-app expansions using only a few lines of codes