1.1.3 ā€¢ Published 3 years ago

react-whatsapp-widget-rtl v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

react-whatsapp-widget

WhatsApp chat widget for your website

NPM JavaScript Style Guide

Custom settings

What is this?

This is a very simple floating WhatsApp button widget. In the current situation with the pandemic 2020 events, most of the small businesses have to move to online presence. A wey to short the communication with your customers is using a widget like this.

It adds a floating-like button to your site that calls the WhatsApp Chat API.

It will automatically begin a WhatsApp chat to the number that you configure and with the text that the user writes.

All texts are fully customizable.

Install

npm install --save react-whatsapp-widget

Usage

import React from 'react'

import WhatsAppWidget from 'react-whatsapp-widget'
import 'react-whatsapp-widget/dist/index.css'

const App = () => {
  return <WhatsAppWidget phoneNumber='XXXXXXXX' />
}

export default App

āš ļø Where the phoneNumber is a full phone number in international format. Omit any zeroes, brackets, or dashes when adding the phone number in international format.

Example: 54222222 where 54 is the Argentina internacional code.

Customization

optionvaluedefaultdescription
phoneNumberstring''WhatsApp intenational number which will receive the message.
textReplyTimestring'Typically replies within a day'
messagestring'Hello! šŸ‘‹šŸ¼ \n\nWhat can we do for you?'With \n you can create a break-line.
companyNamestring'Support'Your company name?)
sendButtonstringSendText inside the send button

License

MIT Ā© ann0nip