Socket
Socket
Sign inDemoInstall

modalwhatsapp-reactjs

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    modalwhatsapp-reactjs

ModalWhatsapp-ReactJs is a component designed to facilitate the creation of URLs that redirect to the WhatsApp API. You just need to fill in the necessary fields, and it will do all the work for you.


Version published
Maintainers
1
Install size
12.6 kB
Created

Readme

Source

ModalWhatsApp ReactJs

ModalWhatsapp-ReactJs is a component designed to facilitate the creation of URLs that redirect to the WhatsApp API. You just need to fill in the necessary fields, and it will do all the work for you.

Desktop-18-04-2024-12-07-29

Installation

  1. First, you must install npm.
npm i modalwhatsapp-reactjs
  1. Once installed, you should import the dependency into the file where you want it to be used (if you want to avoid issues when running it, it's better to add it in the main file of your project).
import WhatsappModal from 'modalwhatssapp'
  1. When it's already imported, you just need to add the import name with <package name/> and include the fields needed to customize both the button, modal, and redirection link.

It should look like this:

asdsad

Here is the code for you to add to the component:

    btnText='button whatsapp' // Button text
    btnBackground="#00695c" // Modify button color
    btnColorText="#fff" // Modify button text color
    sizeY="140px" // Modify height
    sizeX="240px" // Modify width
    bgColorTop="#00695c" ////Modify top background color
    bgColorBottom="#00695c" // Modify bottom background color
    btnResponse="respond" // Text to respond to the toast or modal
    business="company" // Company name or portfolio name
    businessColor="#ebebeb" // Company text color
    message=" hello, do you need help?" // Message that goes in the modal
    phone="56999999999" // Telephone number, this will redirect to the Whatsapp API
    textLink="I am a link text" //Custom message that goes in the Whatsapp API redirection

And with this, you would already have a functional button that redirects to your WhatsApp number! Here's a real example:

Desktop-18-04-2024-12-49-19

Created by SarpiDesign.

If you have any doubts or questions, please contact directly at: Miguel.sarpi@gmail.com

FAQs

Last updated on 20 Apr 2024

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