lovely-whatsapp-fab
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

lovely-whatsapp-fab

A Whatsapp chat FAB (Floating Action Button) that open whatsapp on mobile and whatsapp PC on computer.

Installation

npm install lovely-whatsapp-fab

Usage

import React from 'react';
import WhatsappFAB from 'lovely-whatsapp-fab';

function MyComponent() {
  
  return (
    <WhatsappFAB
      phoneNumber="+919876543210" // Set `your whatsapp chat phone number`
      message={"Hi, I need enquiry about the services you provide"} 
    />
  );
}

Props:

  • phoneNumber: Your whatsapp chat phone number.
  • message: A message that will be written in user's chatbox by default when whatsapp open. They can edit this message before send.

Preview

Preview Image

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Author

Lovenish Goyal

Changelog See the CHANGELOG file for details about changes.

Readme

Keywords

Package Sidebar

Install

npm i lovely-whatsapp-fab

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

13.1 kB

Total Files

14

Last publish

Collaborators

  • lovenish