1.0.7 ā€¢ Published 2 years ago

bf-whatsapp-widget v1.0.7

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

bf-whatsapp-widget

WhatsApp chat widget for your website

What is this?

Simple floating WhatsApp button widget.

Install

npm install --save bf-whatsapp-widget

Usage

import React from 'react'

import WhatsAppWidget from 'bf-whatsapp-widget'
import 'bf-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: 2126111222333 where 212 the country code for Morocco .

Customization

optionvaluedefaultdescription
phoneNumberstring''WhatsApp intenational number which will receive the message.
greetingMessagestring'Hello! šŸ‘‹šŸ¼ \n\nWhat can we do for you?'The greeting message
companyNamestring'Support'Your company name or profile name
buttonLabelstringChat with usThe button label
profilePhotolinkStandard Support ImageFormat supported .png , .jpg or .jpeg \n , eg. https://company.com/company_logo.png .png

License

MIT Ā© botsfactory