@assaabloy/wc-embed

Web component - Embed component (iframe)

Usage no npm install needed!

<script type="module">
  import assaabloyWcEmbed from 'https://cdn.skypack.dev/@assaabloy/wc-embed';
</script>

README

ASSA ABLOY Global web - web components

Embed component (iframe)

Custom HTML element

Properties | Name | Type | Description | | ------------- | --------- | ----------------------------- | | embedData | Object | base64 encoded | | theme | String | |

embedData

{
  "height": "50%", // px or percentage value.
  "src": "https://example.com",
  "title": "Iframe title",
  "config": {
    "padding": {
      "top": true,
      "bottom": true
    }
  }
}

theme Two different color options:

  • "theme-alt-1" (white)
  • "theme-alt-2" (grey)

Dependencies @assaabloy/wc-vendor