Theme Playground

Commerce

ShareButton

Share action that prefers native device sharing and falls back to clipboard copy.

Best for

product sharingwishlist sharingcampaign links

Import

import { ShareButton } from "@enadhq/enad-react-sdk/client/storefront"

When to use it

Use ShareButton when the page should let visitors pass a product, wishlist, or landing page to someone else with minimal friction.

It works best when sharing is a secondary action, not the primary conversion path.

Composition notes

Provide a stable url and add title or text when the share target benefits from richer context. The component handles the native-share-first behavior for you.

Behavior and theming guidance

Keep share affordances easy to find but visually secondary to purchase or navigation actions. If clipboard copy is the main fallback, make sure any success feedback is clear and brief.

Examples

Live examples you can edit directly in the sandbox.

1 example

Default share action

Use the basic button when native share or clipboard fallback is enough for the surrounding layout.

Component Sets

Preview the first example across the available component-set presets to compare tone, spacing, and structural defaults.

Props

PropTypeDefaultDescription
urlstring
No description yet.
titlestring
No description yet.
textstring
No description yet.
labelstringShare
Label shown on the button
copiedLabelstringLink copied!
Message shown after copying the link
copiedDurationnumber2000
Duration (ms) to show the copied confirmation
iconstring
Custom share icon — defaults to a built-in share icon
childrenstring
Optional social platform slots rendered alongside the share button
classNamestring
No description yet.