@shopify/storefront-components
v0.0.13
Published
Easily add Shopify products to any website.
Downloads
147
Keywords
Readme
Shopify Storefront Components
Easily add Shopify products to any website.
Setup
Either npm install or add the script to your HTML:
<script
type="module"
src="https://unpkg.com/@shopify/storefront-components@latest/dist/components.standalone.min.js"
></script>
Then add a shopify-context
element to your HTML:
<shopify-context
store-domain="https://your-store.myshopify.com"
public-access-token="your-public-access-token"
></shopify-context>
Now you can add Shopify storefront components to your page.
Note: you can use multiple <shopify-context>
components to render products from separate storefronts at the same time.
Example
See an example deployed at: https://shopify.github.io/storefront-components
Available Components
shopify-product-title
shopify-product-link
shopify-product-vendor
shopify-product-description
shopify-product-price
shopify-product-form
shopify-product-rating
shopify-product-media-gallery
shopify-checkout-button
shopify-add-to-cart-button
shopify-cart
Customizing
You can customize the components using CSS variables. Some components have additional slots that you can use to add your own content. And some components have CSS parts that you can style using CSS selectors. See each component's documentation for more information.