1.0.5 • Published 4 years ago

react-whatsapp-widget-pro v1.0.5

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

react-whatsapp-widget-pro

Travis npm package Coveralls

Describe react-whatsapp-widget-pro here.

This is a Whatsapp Chat Widget where you can use like a professional chat plugin in your react project with full customization of your own.

Getting Started

npm install react-whatsapp-widget-pro
# or
yarn add react-whatsapp-widget-pro

Usage

import React from "react";

import WhatsAppWidget from "react-whatsapp-widget-pro";

const ReactApp = () => {
	return (
		<WhatsAppWidget
			phoneNo="+123 12345 00000"
			position="right"
			iconSize="40"
			iconColor="white"
			iconBgColor="tomato"
			headerIcon="https://proficientdesigners.in/wp-content/themes/pd/img/logo-new.png"
			headerIconColor="pink"
			headerTxtColor="black"
			headerBgColor="tomato"
			headerTitle="John Doe"
			headerCaption="Online"
			bodyBgColor="#bbb"
			chatPersonName="Support"
			chatMessage={<>Hi there šŸ‘‹ <br /><br /> How can I help you?</>}
			footerBgColor="#999"
			btnBgColor="yellow"
			btnTxtColor="black"
		/>
	);
};

export default ReactApp;

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

Example: 919884098840 where 91 is the International code for India.

PropertyTypeDefaultDescription
phoneNostring''WhatsApp international no. which will receive the message.
positionstring'right'Position the widget to left bottom or right bottom (Enum 'left', 'right')
iconSizestring'52'Fix the size of the chat icon
iconColorstring'rgb(37, 211, 102)'Chat icon color (HexCode, RGB format)
iconBgColorstring'#ffffff'Chat icon background color (HexCode, RGB format)
headerIconstringreactNode svg iconProfile icon in the header as a profile image or use the default svg icon (image uri see the example above)
headerIconColorstring'rgb(100, 100, 100)'Profile icon color in the header (this works only when default svg icon is used)
headerTxtColorstring'rgb(255, 255, 255)'Header text color
headerBgColorstring'rgb(7, 94, 84)'Header background color
headerTitlestring'Customer Support'Header title
headerCaptionstringOnlineHeader caption
bodyBgColorstring'rgb(227, 220, 213)'Chat body background color
chatPersonNamestring'Support'Person name in the chat bubble
chatMessagereactNode<>Hi there šŸ‘‹ <br /><br /> How can I help you?</>Message text in the chat bubble
footerBgColorstring'rgb(255, 255, 255)'Footer background color
btnBgColorstring'rgb(79, 206, 93)'Start chat button background color
btnTxtColorstring'rgb(255, 255, 255)'Start chat button text color

License

MIT

Created by

proficientdesigners.com

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago