How to add data to nested component?
I am using AEM Cloud and I want to embed one component in another component.
They can share the `cq_dialog` of the parent component but I will need to pass some properties values into the nested component, such as text for a nested Button or url for an Image component.
By reading this and this post, I know that we can use `data-sly-resource` like below to render a core Button component.
<div data-sly-resource="${'button' @ resourceType='core/wcm/components/button/v1/button'}"></div>
However, it just renders as a blank sub-component. In this case, a blank button without title or link.

Maybe I am misunderstanding the `data-sly-resource` attribute, but I don't see the point of rendering a component without adding values to it.
How can we pass in property values to the nested components so they render correctly?
Thank you,

