JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 571
  • Score
    100M100P100Q93413F
  • License MIT

A convenient drop-in user interface for mailto links.

Package Exports

  • mailtoui/dist/mailtoui-min.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mailtoui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

MailtoUI

A convenient drop-in user interface for mailto links.


MailtoUI is a library that enhances your mailto links with a convenient user interface, which gives your users the flexibility to compose a new message using a browser-based email client or their default local email app.

MailtoUI is ideal for your static sites or any other site where you don't want to spend time setting up a "Contact Us" form solution.

MailtoUI screenshot

Quick Setup

STEP 1

Add MailtoUI via CDN to the bottom of your page, just before the closing </body> tag.

<body>
    ...
    ...
    <script src="https://cdn.jsdelivr.net/gh/mariordev/mailtoui@latest/dist/mailtoui-min.js"></script>
</body>

STEP 2

Anywhere on your page, attach your mailto link(s) to MailtoUI by adding a unique id, and the class mailtoui to the <a> tag.

<a id="email-1" class="mailtoui" href="mailto:tony.stark@example.com">Tony</a>

STEP 3

Your mailto link is now attached to MailtoUI. Refresh your page, click on it to test it, and delight your site visitors.

Documentation

For full documentation, visit mailtoui.com.

License

MIT