storybookjs / addon-designs

A Storybook addon that embeds Figma, websites, or images in the addon panel.
https://storybookjs.github.io/addon-designs
MIT License
876 stars 71 forks source link

dynamically change the figma design when control variable change #142

Closed aelbore closed 2 years ago

aelbore commented 2 years ago

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like

A clear and concise description of what you want to happen.

I need a feature that changes the figma design base on the control variable, basically for example if i change a theme it should change the figma design

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Design types

Additional context

Add any other context or screenshots about the feature request here.

pocka commented 2 years ago

Is it possible? 🤔 The parameters, which addons use for their inputs, are static. AFAIK, neither users nor an addon can update parameters based on Args.

Even if it's possible, I think it might cause degraded performance or rendering problems due to frequent updates.

If you have frame/file variations, I recommend you to put an array of objects to the design parameter along with name properties (example, docs).


Closing as a workaround exists and performance concern. Feel free to reopen (or comment) if you have any idea to address these problems.