1.0.1 • Published 9 months ago

@limeblock/vue v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

@limeblock/vue - Limeblock for Vue

Installation

Run the following command:

npm install @limeblock/vue @tabler/icons-vue

Basic Usage

  1. In your main app file (main.js/ts):
import { createApp } from "vue";
import App from "./App.vue";
import { ChatWidget } from "@limeblock/vue";

const app = createApp(App);
app.component("Chat Widget", ChatWidget);
  1. In your Vue component:
<template>
  <div>
    <!-- Your application content -->
    <h1>Welcome to My App</h1>

    <!-- Limeblock ChatWidget -->
    <ChatWidget :api-key="API_KEY" :context-params="contextParams" />
  </div>
</template>

<script setup>
const API_KEY = import.meta.env.VITE_LIMEBLOCK_API_KEY || "lime_YOUR_API_KEY";

const contextParams = {
  board_id: "679fdb26a14496f9423891fe",
  user_id: "user_2tFLPXZyEnTmNQsenlQXNU3Q5Z4",
};
</script>

Props

PropTypeRequiredDefaultDescription
apiKeyStringYes-Your Limeblock API key
contextParamsObjectNo{}Context parameters
widgetPositionStringNo"bottom-[8px] right-[8px]"Widget position
chatPositionStringNo"bottom-[0px] right-[0px]"Chat window position

Documentation

For full documentation and API reference, visit:
https://limeblock.io/docs/