0.4.0 • Published 4 years ago

@getchange/change-social-content v0.4.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

change-social-content

<change-social-content
  nonprofitId="n_1234"
	donationId="d_1234"
	publicKey="pk_test_1234"
></change-social-content>

Attributes

NameDescription
nonprofitIdThe ID of the nonprofit for the social media content. The generated content will be tailored to this nonprofit. Find IDs at https://api.getchange.io/nonprofits.
donationIdThe ID of the donation associated with the social media content. Provide this to unlock advanced insights about your customer's sharing habits. Insights are available at https://api.getchange.io/insights.
publicKeyYour public key. Get this at https://api.getchange.io.

Styles

You can style component with the following CSS variables.

NameDescription
--share-button-backgroundThe background color of the share button.
--share-button-colorThe text color of the share button.

Example usage

Set the CSS variables directly on the element using the style attribute. You can also apply them to any ancestor element, and the component will inherit them.

<change-social-content
  style="--share-button-background: red; --share-button-color: black;"
></change-social-content>
0.4.0

4 years ago

0.3.0

4 years ago

0.3.1

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago