Good day Themeco Team!
Apologies in advance if this is a newbie question. I am trying to learn how to use Components and followed the doc guide and video to create my own button component. I have even been able to get the link target parameter to work as suggested in this post: Feature request: Component parameter checkboxes
All is working well except I would like to know how to dynamically set the icon in the headline element of the button. I have already added the icon parameter and the icon selection is showing when I add the component to the page. What I canāt figure out is how to dynamically change the icon based on the icon parameter. I tried something similar to the target choice as per the post above by adding a custom attribute to the headline but I donāt think I am getting the name right. I tried āiconā and āx-gaphic-primaryā (based on inspecting the page), but these donāt work.
Can you tell me the proper name for the custom attribute to dynamically change the headline icon? Or am I going about this all wrong?
One other thing is Iād like to add a parameter to change the size of the text and icon in the headline. Would I just create a text parameter and add the dynamic content to the āFont Sizeā option entry? Or would I add the dynamic parameter to the āWeightā option.
Here are the creds for the site https://artistryware.com/: