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

What if there are props inside props?

Open dusskapark opened this issue 1 year ago • 2 comments

  • Expectation: display Label and expose label value when is Label is true
  • Actual result: Exposed {props.label} as a string as it is

Code

props: {
      // ..
      isLabel: figma.boolean("is Label", {
        true: <InputLabel>{props.label}</InputLabel>,
        false: undefined,
      }),
}

Snippet Screenshot 2024-05-09 at 1 23 15 AM

dusskapark avatar May 08 '24 17:05 dusskapark

Hey @dusskapark, thanks for raising this! It's definitely something we want to support and we're thinking through how to best work it into the API. We'll keep you posted

karlpetersson avatar May 10 '24 11:05 karlpetersson

+1 to this feature

benposnick avatar Jul 24 '24 19:07 benposnick