Expand my Community achievements bar.

SOLVED

Use webcomponents within AEM components

Avatar

Level 2

Hi

 

We would like to use a provided design system in our AEM components like the spectrum Design System of Adobe (https://opensource.adobe.com/spectrum-web-components/).

I achieved to include webcomponents via a CDN (example include Ioinic webcomponent with properties from the dialog)
 

<script src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic.js"></script>
    <ion-radio-group value="strawberries">
        <ion-radio value="${properties.text}">This is my prop: ${properties.text}</ion-radio><br/>
        <ion-radio value="strawberries">Strawberries</ion-radio><br />
        <ion-radio value="pineapple">Pineapple</ion-radio><br />
        <ion-radio value="cherries">Cherries</ion-radio>
    </ion-radio-group>

 

But when I try to include it via a node_module I can't find a way to use the webcomponent.

Does anyone has any idea?

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
2 Replies

Avatar

Correct answer by
Community Advisor

Avatar

Level 2

Hi Albin

 

We are here talking about creating custom Webcomponents in AEM itself.
In our use case we want to embed them via an NPM package (web components are hosted and created somewhere else).

I assume that we need to bind the package to a clientlibs category and we can use it that way.