code-connect icon indicating copy to clipboard operation
code-connect copied to clipboard

Something similar to figma.instance<React.FunctionComponent> with figma.children?

Open Tiberriver256 opened this issue 1 year ago • 2 comments

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

image

What I'd like to do with my figma code connect

image

image

What I'd expect to be rendered

<StandardTable.Cell style="Icon" icon={MyIcon} />

What I'm getting instead

<StandardTable.Cell style="Icon" icon={<MyIcon />} />

Tiberriver256 avatar Nov 26 '24 21:11 Tiberriver256

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!

tomduncalf-figma avatar Nov 27 '24 16:11 tomduncalf-figma

Thank you!

Tiberriver256 avatar Nov 27 '24 16:11 Tiberriver256