figma / code-connect

A tool for connecting your design system components in code with your design system in Figma
MIT License
512 stars 47 forks source link

What if there are props inside props? #51

Open dusskapark opened 1 month ago

dusskapark commented 1 month ago

Code

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

Snippet

Screenshot 2024-05-09 at 1 23 15 AM
karlpetersson commented 1 month ago

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