-
Notifications
You must be signed in to change notification settings - Fork 71
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
[HTML]How to use an instance in a tag's attribute in Figma Connect? #206
Comments
Hi! There seems to be two things at play here:
|
So, will you support for rendering the icon name on the HTML API in the future? When is it expected to be supported? |
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. |
I’m also running into this same issue on the HTML API side and would love to see a fix. It seems like the React API has already been patched—any updates on when this might be addressed for the HTML API as well? |
We are also wondering about this as well, we love Code Connect but haven't been able to implement it on components with icons yet. |
Please provide:
npx figma -V
if using React, orfigma -V
otherwise, to get the version of your CLI]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('*'),
<Button class=${props.className} :icon=${props.iconValue} hasIcon=${props.icon}> <div slot="icon">${props.iconValue}</div> </Button>
However, that displays like this with the layer name:
How can I get the code like this:
The text was updated successfully, but these errors were encountered: