Create a container with icon child upon tapping a component

Hi, I am trying to create a container with icon child upon tapping a container component already on the page.(also add properties to the created elements). Any help :pray: