mljr-ui · showcase

Share Button

Web Share API with clipboard fallback. Uses navigator.share() on supported devices; copies link on desktop.

primitive share-button

Usage

// import "mljr-web/ui/primitive"
primitive.ShareButton(primitive.ShareButtonProps{
    Title: "Check this out",
    Text:  "Found something interesting",
})

// Custom URL
primitive.ShareButton(primitive.ShareButtonProps{
    URL:     "https://mljr.eu",
    Title:   "mljr.eu",
    Variant: token.Primary,
    Label:   "Share Page",
})