Magoo Component UI logo Magoo Component UI
← Catalog

Share Menu

share-menu molecule experimental

A Share button that opens a popover of social share targets plus a Copy link action.

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default
Open

Props

NameTypeReq
items array ✓
url string
trigger_label string
copy_label string
start_open boolean
label string

Related components

How to use

A vanilla-JS toggle: the Share button flips the root's data-open (CSS reveals the panel) and syncs aria-expanded; Escape and outside clicks close it. The Copy link row calls navigator.clipboard.writeText(url) and shows a transient "Copied!" confirmation before restoring its label.

Use cases

action WCAG AA SEO 15 dir: both ai-generated