You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in Figma I have a toggle "is Unavailable" (can be "Yes", "No")
in component.figma.tsx
AvatarCTA,
"https://www.figma.com/design/213213213wasfasdasdsad/asdsadasdsad-%26-Organisms?node-id=13-sssad&m=dev",
{
props: {
label: figma.string("Label"),
showDescription: figma.boolean("show Description"),
isUnavailable: figma.boolean("is Unavailable"),
},
example: (props) => <AvatarCTA isUnAvailable={props.isUnavailable} />,
}
);```
I want to show code in connect at figma like
`<AvatarCTA isUnAvailable={true} /> // when isUnavailable toggle is Yes`
`<AvatarCTA isUnAvailable={false} /> // when isUnavailable toggle is No`
how should I implement?
very urgent please help
The text was updated successfully, but these errors were encountered:
Hi @pttchsswk! Your examples look correct. I'm not able to reproduce this, I'd like to get some more information here if possible. What are the different values of show Icon - is it "Yes" / "No" like in the original post? Could you screenshot what the variant configuration looks like in design mode?
One note is that we omit falsy props entirely, and we pass true like this:
<Button showIcon />
Will this work for you or do you need to be able to explicitly pass false as in showIcon={false} ?
Hey again - I was able to reproduce this issue now. A possible workaround for this is to rename the values of show Icon to "True" or "False" (case sensitive) in Figma - this seems to be an issue if lowercase values are used like "yes" or "true". Let me know if that works for you. In any case, we'll aim to have this fixed in the next release
in Figma I have a toggle "is Unavailable" (can be "Yes", "No")
in component.figma.tsx
The text was updated successfully, but these errors were encountered: