🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

react-whatsapp-widget-pro

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

react-whatsapp-widget-pro

react-whatsapp-widget-pro React component

unpublished
latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

reactJs

FAQs

Package last updated on 25 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts