figma / code-connect

A tool for connecting your design system components in code with your design system in Figma
MIT License
946 stars 68 forks source link

[HTML]How to use an instance in a tag's attribute in Figma Connect? #206

Open Dang-xiaorui opened 6 days ago

Dang-xiaorui commented 6 days ago

Please provide:

How to use an instance in a tag's attribute, typically refers to dynamically binding a component instance (such as an icon instance) to a property of an HTML tag in Figma Connect. We have code like this: iconValue:figma.children('*'), `

ptomas-figma commented 6 days ago

Hi! There seems to be two things at play here:

Dang-xiaorui commented 5 days ago

So, will you support for rendering the icon name on the HTML API in the future? When is it expected to be supported?

slees-figma commented 1 day ago

Hi @Dang-xiaorui, we don't have a timeline to share on icon support in the HTML API right now - as we've just released for React we'd like to review how this has been received before implementing it for other frameworks.