Hello,
I am trying to develop a new component that would reuse multiple already developed components. In our project I have never seen an example where people would do it though.
For example, how do I in HTL use a core button component and author it? Basically, I would imagine something like this:
<sly data-sly-use.myComponent="com.example.aem.core.components.MyCustomComponent">
<!-- Use the button core component -->
<core-wcm-components:button
sling:resourceType="core/wcm/components/button/v2/button"
href="/path/to/link"
title="Click here"
iconBefore="chevron-right"
displayType="outline"
size="large"
align="center">
</core-wcm-components:button>
</sly>
I want it to statically render already pre-authored from the HTL without the ability for the authors (content creators) to change it.
Ideally I would like to then nest my container components with some content component but I imagine that would be done in a similar fashion.
Something like a React component but right now just using HTL.