Skip to main content
Community Plugin
View plugin on GitHub
See starters using this

💌 Mailgo Gatsby plugin

a new concept of mailto and tel links

https://mailgo.dev

Install

npm install --save gatsby-plugin-mailgo

or

yarn add gatsby-plugin-mailgo

then add gatsby-plugin-mailgo in your gatsby-config.js file.

module.exports = {
  plugins: [`...`, `gatsby-plugin-mailgo`, `...`],
};

From the Gatsby plugin 0.9.8 you can pass the mailgo configuration with mailgoConfig option, here an example

module.exports = {
  plugins: [
    `...`,
    {
      resolve: `gatsby-plugin-mailgo`,
      options: {
        mailgoConfig: {
          dark: true,
        },
      },
    },
    ,
    `...`,
  ],
};

you can create your mailgoConfig using all the attributes specified in the docs.

Be careful initEvent parameter, be sure that window has been initialized! We recommend not to specify it in mailgoConfig to avoid any type of error and be sure that mailgo will be started correctly.

Usage

By default all mailto and tel links in your Gatsby website are enabled with mailgo!

See all the details of usage on https://mailgo.dev/docs/usage.

Demo

https://mailgo.dev

mailgo screencast

CodePen

https://codepen.io/manzinello/pen/RmeQEr

On GatsbyJS

https://www.gatsbyjs.org/packages/gatsby-plugin-mailgo/