@flowingcode/fc-whatsapp-button
v2.0.0
Published
Simple Whatsapp Button Web Component
Downloads
17
Readme
@flowingcode/fc-whatsapp-button
Web Component to easily start WhatsApp conversations. It is based on @vaadin/button.
This component is a fork of @open-wa/whatsapp-button.
Online demo
Online demo here.
Installation
npm i @flowingcode/fc-whatsapp-button
How to use
<fc-whatsapp-button phone="123456" dialcode="44" text="Hello!" label="Contact Us!"></fc-whatsapp-button>
How to run local demo
Fork the
fc-whatsapp-button
repository and clone it locally.Make sure you have npm installed.
When in the
fc-whatsapp-button
directory, runnpm install
to install dependencies.Run
npm start
to open the demo.
Testing
npm run test
Creating static demo site
Make sure to have executed
npm install
Execute
npx -p parcel npm run buildstatic
The static site will be generated in /dist
License
For license terms, see LICENSE.txt.