1.0.6 • Published 8 months ago

message-gator v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Message Gator

Message Gator is an integration service which gives you integration of realtime messages, feedback forms and more to your website in no line of code.

How to use

  • Creating Widget

  • Addign to your website

    • Install Message Gator

      npm i message-gator
    • Import function form library

      import { initMessageGator } from 'message-gator';
    • Using Initializer

      ```js
      initMessageGator({
        userId:'your-public-id'
      })
      ```

      Now If you are using inside React JS use with useEffect.

Parameters

initMessageGator({
    userId: 'your-user-id',
    email: 'pre-filled-email',
    name: 'pre-filled-name',
    hideDetails: false, // if you don't want to show name and email but you shall prefill them to avoid failure in this case
    buttonText: 'Message Me',
    buttonActiveText: 'Close',
    customCSS: '#cta-messsage-gator{background: #242b2e; color: #fff;border:none}'
});
ParameterWhat it doesValues
userIda unique id for each widget
emailpre fills email adderss in formemail
namepre fills name in formany
hideDetailshides name and email fields if true but in this case you need to pre fill name and email to avoid failuretrue, false
buttonTextText of button which appears (Default: Drop Message)any
buttonActiveTexttext which appears while click on button (Defalut: Close)Any
customCSSTarget Classes to customize widget and button way you want, shall be passed in stringCSS

With targeting these id you can change button and frame CSS

CSS IDwhat it does
#cta-messsage-gatorMessage Gator Button
#message-gator-frameMessage Gator Frame

More features are being constantly added sunch and will be available soon.

Built with 💚 by Pushkar Yadav

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago