Documentation Index
Fetch the complete documentation index at: https://mintlify.com/finsweet/attributes/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Social Share attribute enables easy sharing to social media platforms. It automatically generates share URLs with proper formatting and opens them in optimized popup windows. Supports Facebook, X (Twitter), Pinterest, LinkedIn, Telegram, and Reddit.Attribute Syntax
Elements
Defines the social platform or content source:Social Platforms:
facebook- Share button for Facebookx- Share button for X (formerly Twitter)pinterest- Share button for Pinterestlinkedin- Share button for LinkedIntelegram- Share button for Telegramreddit- Share button for Reddit
content- The text content to be sharedurl- Custom URL to share (otherwise uses current page URL)facebook-hashtags- Hashtags for Facebook (comma-separated)x-hashtags- Hashtags for X (comma-separated)x-username- X username to mentionpinterest-image- Image URL for Pinterestpinterest-description- Description for Pinterest
Settings
Defines the width of the share popup window in pixels.
Defines the height of the share popup window in pixels.
Defines which element’s text content should be used for sharing (by selector or element name).
Usage Examples
Common Use Cases
Blog Post Sharing
Add share buttons to blog posts for easy social media distribution:Product Sharing
Enable customers to share products with friends:Event Promotion
Share event details across social platforms:Quote Sharing
Create tweetable quotes:Platform-Specific Features
- Shares current page URL by default
- Supports custom URL via
fs-socialshare-element="url" - Supports hashtags via
fs-socialshare-element="facebook-hashtags"
X (Twitter)
- Shares text content from
contentelement - Hashtags: comma-separated list via
x-hashtagselement - Username mention: via
x-usernameelement - Character limit: 280 characters
- Requires image URL via
pinterest-imageelement - Description via
pinterest-descriptionelement - Falls back to page description if not specified
- Shares current page URL
- Automatically extracts page metadata
Telegram
- Shares text and URL
- Opens Telegram app or web version
- Shares URL with title
- Opens Reddit submission page
Share URLs Generated
The attribute generates proper share URLs for each platform:| Platform | Base URL |
|---|---|
https://www.facebook.com/sharer/sharer.php | |
| X | https://x.com/intent/post/ |
https://www.pinterest.com/pin/create/trigger/ | |
https://www.linkedin.com/sharing/share-offsite | |
| Telegram | https://t.me/share |
https://www.reddit.com/submit |
Popup Window Behavior
The attribute opens share dialogs in popup windows:- Centered on screen
- Focused automatically
- Independent of main window
- Optimized size (600x480 by default)
Custom Popup Sizes
CMS Integration
In Webflow CMS templates, bind dynamic content:Styling Share Buttons
Content elements (like
content, url, pinterest-description, etc.) are typically hidden with display: none or a .hidden class since they’re only used as data sources.