SharinPix LWC Custom Upload Button (Developer-Oriented)
Overview
The SharinPix Custom Upload Button LWC is a Lightning Web Component component designed to create a customized button that uploads images to SharinPix from a Salesforce record. It is intended for use as a child component in your own custom Lightning Web Component (the “parent”), where you pass in a button layout (or any UI) via a <span> or other HTML wrapper element.

Getting Started
This component uploads images using a Lightning button, which is fully customizable using the Lightning Design System framework.
Usage Example (Parent LWC)
Below is a simple parent LWC demonstrating how to use the SharinPix Custom Upload Button
HTML (Parent LWC)
Warning:
You must start the component’s slot content with a <span> (rather than a <button> or <a>) for compatibility reasons.
JavaScript (Parent LWC)
Attributes
recordId
Reference to the Salesforce record where images will be uploaded.
Id
permissionId
SharinPix Permission record ID or Name to be applied on the component.
String
enableToast
If true, shows a toast message after uploads complete.
Boolean
enableImageSync
Activates the image sync functionality.
Boolean
enableAction
Activates the Tag Action functionality.
Boolean
fileExtensions
Restricts the file types that can be uploaded (e.g., .jpg, .heic, .pdf).
String

