Custom Element
Embed Experiences using the JS SDK
Overview
Step 1. Import the SDK
Using a <script> tag in the <head> of your HTML:
<script> tag in the <head> of your HTML:<!-- The rest of your head contents -->
<script src="https://sdk.monterosa.cloud/0.18.4/static-embed/index.js" defer="defer"></script>Importing as an npm module in your JavaScript code:
import '@monterosa/sdk-widget';Step 2. Embed Using Custom HTML Tag
<monterosa-experience
host="<host>"
projectId="<project id>"
>
</monterosa-experience>Step 3. Customising the app (optional)
Last updated

