fogbender-vue
v0.1.4
Published
Fogbender wrapper for Vue 2 and Vue 3
Downloads
59
Maintainers
Readme
fogbender-vue
This is still an experimental package. Please use fogbender-react or fogbender if you can.
Install
npm install fogbender-vue
Or if you are using other package managers like yarn, pnpm or bun:
npm i -g @antfu/ni && ni fogbender-vue
Usage
<script setup lang="ts">
import { FogbenderSimpleWidget } from "fogbender-vue";
const token = {
widgetId: "dzAwMTQ5OTEzNjgyNjkwNzA3NDU2",
customerId: "org123",
customerName: "Org Name",
userId: "example_PLEASE_CHANGE",
userEmail: "[email protected]",
userHMAC: "04b7c1aab187a84bfa3160b99c100df08c78b3a1e25884fc13d8d72a9b96ddc3",
userName: "User Name",
userAvatarUrl:
"https://user-images.githubusercontent.com/7026/108277328-19c97700-712e-11eb-96d6-7de0c98c9e3d.png", // optional
};
</script>
<template>
<div>
<p>Hello Fogbender</p>
<FogbenderSimpleWidget clientUrl="https://main--fb-client.netlify.app" :token="token" />
</div>
</template>
Examples
- https://codesandbox.io/s/fogbender-vue-scgn25?file=/src/App.vue
License
MIT © JLarky