@perceptimagery/sprie-embed
v0.1.1015
Published
| An embeddable package for `Previewing` SKUs
Downloads
84
Readme
Embed-preview
| An embeddable package for Previewing
SKUs
Documentation
https://docs.sprie.io/docs/embed/
Usage
Prod: https://cdn.jsdelivr.net/npm/@perceptimagery/sprie-embed@latest
Dev : https://cdn.jsdelivr.net/npm/@perceptimagery/sprie-embed-staging@latest
<!-- index.html -->
<!-- Declare element with class `sprie-embed-element` and data-sku. This will get transformed after authentication -->
<div
class="sprie-embed-element"
data-sku="{sku}"
></div>
<!-- To inject custom css class to underlying iframe, add data-class property -->
<div
class="sprie-embed-element"
data-sku="{sku}"
data-class="custom-element-class"
></div>
<!-- Inject `Sprie Embed` from CDN -->
<script src="https://cdn.jsdelivr.net/npm/@perceptimagery/sprie-embed@latest?apikey={apikey}"></script>
Demo
[ TODO ]
- [✅] removed React
- [✅] authentication doesnt resolve intitally. Has to be reloaded.