react-whatsapp-badge

1.0.3 • Public • Published

react-whatsapp-badge

Click to chat Whatsapp badge

NPM JavaScript Style Guide

demo

Install

npm install --save react-whatsapp-badge

Usage

import React, { Component } from 'react'
import WhatsappBadge from 'react-whatsapp-badge'
 
class Example extends Component {
  render () {
    return (
      <WhatsappBadge text='Hello there' phone='55123456789' image='whatsapp.png' />
    )
  }
}

More info about Whatsapp click to chat

Options

Parameter Required Desciption
text yes Text to display on input when open chat
phone yes Phone number with country code to send message (only number)
image yes Image to display on badge (download this file and save on public folder: img)

License

MIT © felops

Readme

Keywords

Package Sidebar

Install

npm i react-whatsapp-badge

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

15.2 kB

Total Files

6

Last publish

Collaborators

  • felops