Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tiberriver256 opened this issue Nov 26, 2024 · 2 comments
Labels
API question bug Something isn't working

Comments

@Tiberriver256
Copy link

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 />} />
@tomduncalf-figma
Copy link
Contributor

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 tomduncalf-figma added the bug Something isn't working label Nov 27, 2024
@Tiberriver256
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API question bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants