Socket
Socket
Sign inDemoInstall

react-floating-whatsapp-button

Package Overview
Dependencies
6
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
20
increased by17.65%
Maintainers
1
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 30 Oct 2021

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc