FigmaToCode
FigmaToCode copied to clipboard
Html node name from figma node name
Currently there is an option to get the name of the figma node as a class name.
Would it be possible to have a similar option to directly have a custom html node name? In that case, we would be able to directly use your html as our Angular template file.
Thanks in advance for your answer.
Benjamin
Could you give an example? Like, for node with name 'node1', you want the output to have className: 'node1' ?
It would be even more powerful if in a figma node name like this "label.superclass" could be export in html like this <label class="superclass" ...>
I'd like to revive this feature request. I was testing the plugin and noticed all text is exported as a div when they should be paragraphs meaning everything needs to be manually updated.
The Figma to Webflow plugin solves this by allowing you to mark elements as a dom node. The node type allowed is based on whether a text node or layout element is selected in Figma.
All it is really doing is naming the layers using a preset syntax eg: [H1]--Layer Name which I guess is being used in generating the export code to identify the node type to use.