Simple Whatsapp button web component
npm install @open-wa/whatsapp-button  
[![Buy me a coffee][buymeacoffee-shield]][buymeacoffee]
Easily start WhatsApp conversations! Based on @material/mwc-button.
``html`
`bash`
npm i @open-wa/whatsapp-button
then import
`html`
Or grab from unpkg.com CDN:
`html`
`html`
You can check out an example of it working here: JsFiddle
I'm glad you asked! You can simply add the bypass attribute. This will result in opening the WhatsApp chat WITHOUT being redirected!
`html`
To scan the project for linting errors, run
`bash`
npm run lint
To automatically fix many linting errors, run
`bash`
npm run format
You can format using ESLint and Prettier individually as well
`bash`
npm run format:eslint
`bash`
npm run format:prettier
To run the suite of karma tests, run
`bash`
npm run test
or to run them in compatibility mode for legacy browsers
`bash`
npm run test:compatibility
To run the tests in watch mode (for TDD, for example), run
`bash`
npm run test:watch
or
`bash`
npm run test:compatibility
To run the suite of karma tests in BrowserStack, run
`bash`
npm run test:bs
You can manage the test snapshots using
`bash`
npm run test:update-snapshots`
orbash`
npm run test:prune-snapshots
To run a local instance of Storybook for your component, run
`bash`
npm run storybook
To build a production version of Storybook, run
`bash`
npm run storybook:build
`bash`
npm start
To run a local development server that serves the basic demo located in demo/index.html
`bash`
npm start:compatibility
To run a local development server in compatibility mode for older browsers that serves the basic demo located in demo/index.html`
[buymeacoffee-shield]: https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg
[buymeacoffee]: https://www.buymeacoffee.com/smashah