Salla Docs
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Elements
  • Overview
  • Usage
  • Components Customization
  • Elements
    • Apps Icons
    • Breadcrumb
    • Color Picker
    • Conditional Fields
    • Count Down
    • Filters
    • Infinite Scroll
    • List Tile
    • Loading
    • Map
    • Modal
    • Placeholder
    • Progress Bar
    • Rating Stars
    • Reviews
    • Reviews Summary
    • Sheet
    • Skeleton
    • Slider
    • Social
    • Social Share
    • Tabs
  • Form
    • Button
    • Bottom Alert
    • Contacts
    • Date Time Picker
    • File Upload
    • Menu
    • Quantity Input
    • Select
    • Tel Input
  • Product
    • Add Product
    • Advertisement
    • Comments
    • Conditional Offer
    • Gifting
    • Installment
    • Meta Data
    • Offer
    • Offer Modal
    • Orders
    • Payments
    • Product Availability
    • Product Card
    • Products List
    • Product Options
    • Product Size Guide
    • Products Slider
    • Quick Buy
    • Quick Order
    • Scopes
    • Search
  • User
    • Cart Summary
    • Localization
    • Login
    • Loyalty
    • Rating
    • User Menu
    • User Profile
    • User Settings
    • Verify
  1. Elements

Social Share

The <salla-social-share> web component is used to display a menu with social media platforms and sharing capabilities in the form of email and copyable links. This can be customized using the properties' parameters.

Example#

Social Share

Usage#

HTML

Properties#

PropertyAttributeDescriptionTypeDefault
PlatformsplatformsSelected platforms to share the content on, such as Facebook, Twitter, WhatsApp, Email, and shareable linkstring'facebook,twitter,whatsapp,email,copy_link'
URLurlCustom Page URL that is to be sharedstring""
URL Nameurl-nameCustom Page URL name that is be sharedstring""

Methods#

The pre-defined methods allow for calling functions built by Salla to carry out certain actvities, such as open which opens or activates the share menu.
MethodDescriptionReturn Type
open()Opens / Activates the share menuPromise<void>
refresh()Refreshs the URL and URL Name after re-rendering the componentPromise<void>

Slots#

Theslots makes it customizable to modify certain labels, such as widget.
SlotDescription
widgetAn action that can be used to activete or open the component by calling the open method.
Modified at 2024-08-18 10:52:57
Previous
Social
Next
Tabs