@assaabloy/wc-editorial-section2

Web component - Editorial Section2

Usage no npm install needed!

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

README

ASSA ABLOY Global web - web components

Editorial Section2

Custom HTML element

<editorial-section2 editorialData="" theme=""></editorial-section2>

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

editorialData

{
  "title": "Here goes an short intro to the section",
  "image": {
    "url": "https://picsum.photos/900/500",
    "label": {
      "visible": true,
      "title": "Title",
      "text": "Label text",
      "url": "/#",
      "position": "topRight | topLeft | bottomRight | bottomLeft"
    }
  },
  "html": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat.</p>",
  "cta": {
    "label": "Read more",
    "url": "/#",
    "type": "primary | secondary | contrast",
    "visible": true
  },
  "config": {
    "padding": {
      "top": true,
      "bottom": true
    }
  }
}

theme
Two different color options:

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

Dependencies
@assaabloy/wc-vendor