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
Ah! Yes, I should have mentioned variant restrictions as an option. Still not ideal. Will update once we have more info on how we're thinking about implementing this.
We have a
<Tag/>
component with a booleanrounded
prop which is set by default totrue
.Similarly, in Figma, we also have a
rounded
boolean prop defaulted totrue
.I'm having trouble configuring the
Tag.figma.tsx
to output the proper code snippet.If I don't change the default true/false mappings, this is the
true
code snippet:This is
false
:Both of these snippets would render the same component, as
rounded
is defaulted totrue
in the React component.I would like a way to have the code snippets to look like this for
true
:and this for
false
:I've tried mapping the true/false states props individually, but I haven't found a way to produce the desired result.
The text was updated successfully, but these errors were encountered: