Share button
One button that shares a page the best way the device can: the phone's own share sheet (Messages, WhatsApp, email…), or, on a computer without one, it copies the link and says so.
Share button
<button class="btn" type="button" data-momo-share><i class="mi mi-share" aria-hidden="true"></i> Share</button>
<button class="btn btn-icon btn-ghost" type="button" data-momo-share data-share-url="https://example.com/posts/one-color" data-share-title="Why we stopped using ten colors" aria-label="Share this post"><i class="mi mi-share" aria-hidden="true"></i></button>Options
| Attribute | Does |
|---|---|
data-momo-share | Makes the button share |
data-share-url | The link to share (default: the page's canonical link, or this page) |
data-share-title / data-share-text | A title and a line of text for the share sheet (default: the page title) |
Nothing is sent anywhere by Momo: the reader picks where it goes. For a menu of specific places, use a bottom drawer with links.