npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

customer-chat-widget

v1.1.1

Published

A customer chat widget for websites, implemented with Vue3 and Tailwind CSS, supporting multiple chat platforms(WhatsApp and Telegram) and customizable styles.

Downloads

6

Readme

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

| Property | Description | Type | Default | | ----------------------- | ------------------------------------------------------------------------------------------- | ----------------- | ---------------------------------------------- | | position | Set widget show position | fixed|static | fixed | | chatSendButtonClickable | Set chat send button clickable | boolean | true | | bubbleText | Set bubble text | string | Get In Touch | | showBubble | Set bubble show or hide | boolean | true | | chatBoxTitle | Set chat box title | string | Hi there. 👋 | | chatBoxMessage | Set chat box message, this message will be filled in WhatsApp's chat box | string | I checked the website and have some questions. | | showChatBoxShadow | Set chat box shadow | boolean | true | | chatButtonText | Set chat button text | string | Chat With US | | phone | Set customer service staff's WhatsApp phone | string | +447354255981 | | username | Set customer service staff's Telegram username | string | +447354255981 | | showKfAvatar | Set customer service staff's avatar | boolean | true | | withGradient | Set whether there is a gradient effect to chat send button and chat button background color | boolean | rgb(191, 81, 254) | | gradientBaseRGB | Set chat send button and chat button background color RGB value | string | rgb(191, 81, 254) |

U301 Team

U301 Team

Contributors

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