1.1.4 • Published 5 months ago

@menni/chatbot v1.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

Menni Chatbot

npm version license

A modern chatbot component for React and Vue applications with customizable UI and seamless integration.

Features

  • 🎨 Customizable UI with light/dark themes
  • 🔄 Real-time chat functionality
  • 📱 Responsive design
  • 🔒 Secure authentication with public key
  • 🎯 Position customization (left/right)
  • 💬 Customizable tooltip text
  • ⚡ Easy integration with React and Vue applications

Installation

npm install @menni/chatbot
# or
yarn add @menni/chatbot

Usage

React

import { MenniChatBot } from "@menni/chatbot/react";

function App() {
  return (
    <MenniChatBot
      uniqueId="your-unique-id"
      publicKey="your-public-key"
      tooltipText="Need help?"
      theme="light"
      position="right"
    />
  );
}

Vue

<template>
  <MenniChatBot
    uniqueId="your-unique-id"
    publicKey="your-public-key"
    tooltipText="Need help?"
    theme="light"
    position="right"
  />
</template>

<script>
import { MenniChatBot } from "@menni/chatbot/vue";

export default {
  components: {
    MenniChatBot,
  },
};
</script>

Props

PropTypeRequiredDefaultDescription
uniqueIdstringYes-Unique identifier for the chatbot instance
publicKeystringYes-Public key for authentication
tooltipTextstringYes-Text to display in the tooltip
theme'light' | 'dark'No'light'Theme of the chatbot UI
position'left' | 'right'No'right'Position of the chatbot on the screen

Framework Compatibility

  • React 17, 18, and 19
  • Next.js 13 and 14 ('use client' directive required)
  • Create React App
  • Vite

Development

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

License

ISC

Author

Menni