code-connect
code-connect copied to clipboard
How to get the name of the icon component in Figma within figma.connect method?
I have connected all the icons assets in Figma. I used scripts to generate code connect files and added name props using the component name like below.
Now on IconButton component, it shows inconsistent behavior for name prop. Some icon renders code and some shows in instances. I was using name: figma.instance('icon') for the name prop.
My questions:
- Despite the inconsistency, how to get the
nameprop on icon instances? Thenameprops is not a design prop, but generated through script. We tried to add annameprop in Figma for each icon, but it seems there's no proper variable type to use.
Thanks!
Please provide: Code Connect CLI version: 1.0.6 Operating system: macOS
At this point, we do not plan to add this model as it is not longer SOTA for small models.