# Content sharing

> Use the Share action to push URLs, text, or media files to the device's native share sheet, and build social network sharing links for browser-based contexts.

https://docs.pandasuite.com/essentials/interactions/content-sharing/

**The Share action sends a URL, text, image, video, PDF, or any media file to the device's native share sheet. Use it to let readers forward content to social networks, messaging apps, email, or system features such as AirDrop or Print.**

This pattern fits mobile applications, editorial platforms, digital publications, and product catalogs.

## Share via the device's native share sheet

The Share action relies on the iOS and Android share sheet, also available in Safari on macOS. It works whether your application is delivered as a native build or through the web.

|                                                                                                                 |                                                                                                                      |
| --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| [Image: Android native share sheet: shared link, suggested contacts and apps such as Gmail, Messages and Drive] | [Image: iOS native share sheet: suggested contacts, AirDrop, Messages and Mail, then options such as Copy and Print] |

The list of destinations reflects the apps installed on the device: social networks (Facebook, X, WhatsApp), messaging apps (Messages, Gmail), or system features (AirDrop, Print).

### Create a Share action

1. Select the component that triggers the share, then open the **Actions** panel.
2. Add a **Share** action.
3. Use the **Type** toggle to choose what you want to share: **URL** or **Media**.

#### Share a URL or text

With **Type** set to **URL**, fill in the **URL** and **Text** fields. Both accept dynamic values through the data binding icon, so the share content can follow the active record in a Collection or any other component property.

[Image: Share action in PandaSuite Studio: Type set to URL, with URL and Text fields and their data binding icons]

> **Note**
>
> Some target apps display only the URL and ignore the accompanying text. Test on each platform you support.

#### Share a media file

With **Type** set to **Media**, click **Select**: the data window opens so you can pick a media value, for example the **Image** produced by a [Screenshot](https://docs.pandasuite.com/essentials/components/screenshot/) component.

[Image: Share action on a game result photo: Type Media, Media bound to the Image of a Screenshot component, and the caption My garden beds, framed]

Add a caption in the **Text** field if you want to prefill the message that accompanies the file.

### Defer execution

Use the **Delay** field to postpone the share by a number of seconds. This is useful when the share sheet should appear after an animation or another action has played.

## Share through a social network web link

When the action runs in a desktop browser, where the native share sheet is not available, build a custom URL with the **Open URL** action (see [Interactive actions](https://docs.pandasuite.com/essentials/interactions/interactive-actions/)). Each social network exposes a sharing endpoint that pre-fills a post on its platform.

### Bind the project's current URL

Replace the example URL in the snippets below with the project's current address by clicking the data binding icon next to the **URL** field and selecting `Project > Context > Launch > Url`. The full data tree is documented in [Project information](https://docs.pandasuite.com/essentials/project-properties/project-information/).

### Facebook

```plaintext
https://www.facebook.com/sharer/sharer.php?u=https://pandasuite.com
```

### X (Twitter)

```plaintext
https://twitter.com/intent/tweet
?url=https://pandasuite.com
&text=Discover+PandaSuite+The+Awesome+No+Code+Platform
&hashtags=nocode,appmaker
```

### LinkedIn

```plaintext
https://www.linkedin.com/sharing/share-offsite/?url=https://pandasuite.com
```

### WhatsApp

```plaintext
https://api.whatsapp.com/send?text=https://pandasuite.com
```

### Email

```plaintext
mailto:?subject=PandaSuite&body=https://pandasuite.com
```

## See also

- [Interactive actions](https://docs.pandasuite.com/essentials/interactions/interactive-actions/)
- [Buttons for phone calls, emails and SMS](https://docs.pandasuite.com/essentials/interactions/buttons-for-phone-calls-emails-and-sms/)
- [Project information](https://docs.pandasuite.com/essentials/project-properties/project-information/)
