1.1.0 • Published 3 years ago

react-floating-whatsapp-button v1.1.0

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

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