# Share

<figure><img src="https://3723856256-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGnixyIfIYFWroNtVmZo6%2Fuploads%2Fgit-blob-2adc44285fd80be9ec1d82671c8a69f1f0894a5e%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

## Overview

A customizable share component that allows users to easily share content to social media platforms. Features a share button with dynamic text feedback. Supports sharing to Facebook, Twitter/X, Pinterest, and LinkedIn, with native sharing on supported devices.

## Common use cases

* Add social sharing buttons to product pages
* Enable content sharing on blog posts
* Create shareable links for promotions
* Allow users to share pages on social media
* Provide quick sharing options for articles

## Compatible blocks

The following blocks can be nested within this block:

* [Container](https://help.brickspacelab.com/slab/content/blocks/layout/container)

## Block settings

### General

| Setting                | Description                                            | Options                   |
| ---------------------- | ------------------------------------------------------ | ------------------------- |
| Show advanced settings | Reveals direction, horizontal position, and visibility | Checkbox (default: false) |

### Content

| Setting                | Description                  | Options                  |
| ---------------------- | ---------------------------- | ------------------------ |
| Enable Facebook share  | Shows Facebook share button  | Checkbox (default: true) |
| Enable X/Twitter share | Shows X/Twitter share button | Checkbox (default: true) |
| Enable Pinterest share | Shows Pinterest share button | Checkbox (default: true) |
| Enable LinkedIn share  | Shows LinkedIn share button  | Checkbox (default: true) |

### Spacing

| Setting                   | Description                                  | Options                   |
| ------------------------- | -------------------------------------------- | ------------------------- |
| Enable horizontal padding | Adds horizontal padding inside the container | Checkbox (default: false) |
| Enable top padding        | Adds top padding                             | Checkbox (default: false) |
| Enable bottom padding     | Adds bottom padding                          | Checkbox (default: false) |

### Layout

| Setting              | Description                                                             | Options                                                                                                                 |
| -------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| Width                | Controls the width of the share dropdown                                | 100 - 400 px (default: 250)                                                                                             |
| Direction            | Controls whether the dropdown opens up or down                          | <p>• Up (default)<br>• Down</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on</p>                |
| Horizontal position  | Controls horizontal positioning of the dropdown relative to the trigger | <p>• Left (default)<br>• Center<br>• Right</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on</p> |
| Horizontal alignment | Controls horizontal alignment of the share button                       | <p>• Left (default)<br>• Center<br>• Right</p>                                                                          |

### Display

| Setting    | Description                        | Options                                                                                                                            |
| ---------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Visibility | Controls when the block is visible | <p>• All (default)<br>• Mobile only<br>• Desktop only</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on</p> |
