1.1.1 • Published 12 months ago

customer-chat-widget v1.1.1

Weekly downloads
-
License
-
Repository
github
Last release
12 months ago

Customer Chat Widget

With this widget, you can add a customer chat widget to your website. It is easy to use and customizable. Your contacts can easily reach you on WhatsApp or Telegram.

Installation

npm i customer-chat-widget

Usage

First, import css in your main.css or nuxt.config.ts.
main.css

@import url('~/node_modules/customer-chat-widget/dist/style.css');

nuxt.config.ts

export default defineNuxtConfig({
  // ...
  css: ['~/node_modules/customer-chat-widget/dist/style.css']
  // ...
})

Then, add the component to your template:

  1. use WhatsApp component
import { WhatsAppChat } from 'customer-chat-widget';

<template>
  <WhatsAppChat />
</template>
  1. use Telegram component
import { TelegramChat } from 'customer-chat-widget';

<template>
  <TelegramChat />
</template>

Props

PropertyDescriptionTypeDefault
positionSet widget show positionfixed|staticfixed
chatSendButtonClickableSet chat send button clickablebooleantrue
bubbleTextSet bubble textstringGet In Touch
showBubbleSet bubble show or hidebooleantrue
chatBoxTitleSet chat box titlestringHi there. 👋
chatBoxMessageSet chat box message, this message will be filled in WhatsApp's chat boxstringI checked the website and have some questions.
showChatBoxShadowSet chat box shadowbooleantrue
chatButtonTextSet chat button textstringChat With US
phoneSet customer service staff's WhatsApp phonestring+447354255981
usernameSet customer service staff's Telegram usernamestring+447354255981
showKfAvatarSet customer service staff's avatarbooleantrue
withGradientSet whether there is a gradient effect to chat send button and chat button background colorbooleanrgb(191, 81, 254)
gradientBaseRGBSet chat send button and chat button background color RGB valuestringrgb(191, 81, 254)

U301 Team

U301 Team

Contributors

This project is contributed by u301 team. Create an issue to give suggestions or feedback questions.

1.1.1

12 months ago

1.1.0

12 months ago

1.0.0

12 months ago

0.0.4

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago