Socket
Book a DemoInstallSign in
Socket

react-floating-whatsapp-button

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-floating-whatsapp-button

React component to add floating whatsapp chat button with window and an optional message to the app.

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

react-floating-whatsapp-button

React component to add floating whatsapp chat button with window and an optional message to the app.

NPM JavaScript Style Guide

Example gif

Install

npm install --save react-floating-whatsapp-button

Usage

import React, { Component } from 'react'

import { FloatingWhatsApp } from 'react-floating-whatsapp-button'
import 'react-floating-whatsapp-button/dist/index.css'

class Example extends Component {
  render() {
    return <FloatingWhatsApp />
  }
}

Example

https://arc9693.github.io/react-floating-whatsapp-button/

Props(optional)

NameDescriptionTypeDefault
phonePhone numberstring'1231231231'
messageSender's default message inputstring''
sizeButton sizestring'70px'
backgroundColorButton background colorstring'#25D366'
positionleft/rightstring'right'
popupMessagestring'Hello, how can we help you?'
showPopupbooleanfalse
showOnIEbooleantrue
autoOpenTimeoutin msnumber2000
headerColorstring'#128C7E'
headerTitlestring'WhatsApp Chat'
zIndexz-index of the componentnumber0
buttonImageBase64 encoded button imagestringWhatsapp icon's image

License

MIT © arc9693

Keywords

react

FAQs

Package last updated on 30 Oct 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