Hello,
I’d like to know how I can get the HTML from an existing component, so that I can copy this HTML and then go to another Figma file and simply do “CTRL + V” to paste the component.
I made some tests on this site : https://www.figcomponents.com/ and when I click on the “copy to clipboard” button, I saw that it generates a kind of HTML code (which is not real HTML). This is this kind of code that I’d like to retrieve when I click on my own components.
Could you please tell me how to do ? I thought maybe it could be achieved with the API but I don’t know how. I tried to use the api but I have to give the component id as a parameter and I don’t know how to retrieve this information.
Could you please help me ?