code-connect
code-connect copied to clipboard
Something similar to figma.instance<React.FunctionComponent> with figma.children?
I've got a designer who is using icons as children instead of instance swap properties and I need to pass that icon into my react component as a react component.
Example in Figma
What I'd like to do with my figma code connect
What I'd expect to be rendered
<StandardTable.Cell style="Icon" icon={MyIcon} />
What I'm getting instead
<StandardTable.Cell style="Icon" icon={<MyIcon />} />
Hey @Tiberriver256, thanks for the report. This seems to be a bug as we'd expect this to work. We'll update you when we've fixed it. Thanks!
Thank you!