AEM 6.5 Components | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
aniketp1012Accepted solution
Level 2
Mar 11, 2022 5:28 AM UTC

Hi Shikha, you can refer Style system for your use case. Please refer this link which explains likewise use case:

https://medium.com/adobetech/using-aem-style-system-to-increase-reusability-of-components-8177c5b65c9e

 

4 replies

aniketp1012Accepted solution
Level 2
Mar 11, 2022 5:28 AM UTC

Hi Shikha, you can refer Style system for your use case. Please refer this link which explains likewise use case:

https://medium.com/adobetech/using-aem-style-system-to-increase-reusability-of-components-8177c5b65c9e

 

Translate
Anish-Sinha
Employee
Mar 11, 2022 5:20 AM UTC

+1 for Debal's comment. Style system is the solution for your use case.  You can refer to this link which demonstrate exact same use case as yours: https://medium.com/adobetech/using-aem-style-system-to-increase-reusability-of-components-8177c5b65c9e

 

https://experienceleague.adobe.com/docs/experience-manager-learn/sites/developing/style-system-technical-video-understand.html?lang=en

 

Translate
DEBAL_DAS
New Participant
Mar 11, 2022 5:17 AM UTC

I believe using style system you could achieve this. You need to define styles via component policy as shown below -

 

Then define your styles here as per your requirement -

 

 

Please refer AEM GEEKS style system video , it will help to implement.

Translate
shikhasoni1
Level 3
Mar 11, 2022 5:23 AM UTC

But style needs to be different for the same component dragged two times in same page. 

 

Using that it will have same style for the component if i will drag and drop it two times in the same page.

Translate