Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ybug-vue

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ybug-vue

A simple Vue 3 wrapper for [Ybug's](https://ybug.io) [Feedback Widget API](https://ybug.io/docs/installation).

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
228
increased by135.05%
Maintainers
1
Weekly downloads
 
Created
Source

Ybug-vue

A simple Vue 3 wrapper for Ybug's Feedback Widget API.

Installation

npm install --save ybug-vue

Setup

Install the plugin. You can use any setting mentioned in the documentation.

import { createApp } from 'vue';
import Ybug from 'ybug-vue';

const app = createApp({});

app.use(Ybug, {
    id: 'Your Project ID goes here',
    /* optional options */
    settings: {
        language_override: 'cs',
        /* ... */
    }
});

Usage

You can use any method mentioned in the official documentation.

Usage with Composition API

You can inject('ybug') in your Composition API components.

<script setup>
import { inject } from "vue";
const ybug = inject("ybug");
</script>

<template>
  <button @click="ybug.open('feedback')">Feedback</button>
</template>

Usage with Options API

ybug-vue plugin exposes $ybug object in components using the Options API.

<template>
  <button @click="$ybug.open('feedback')">Feedback</button>
</template>

Keywords

FAQs

Package last updated on 24 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc