Support switching variants on click

Hi here’s an idea that would make Plasmic a KILLER app:
IDEA: Change a component instance state (the property or variant) through a Link
WORKFLOW:

  1. Create a Component with a variant prop: <variant_a>;
  2. Add instance to a page, along with a Link instance;
  3. Select the instance, and in the properties panel set its HTML ID to ;
  4. Select the Link instance and in the the properties panel set its property to <./component-a/variant-a-value>, where could be any possible state of ; et VOILA!

Hello! Thank you for the suggestion.
This is already on our roadmap – adding more advanced interactions like switching variants. We hope to ship it soon

1 Like

@samuel has this shipped yet?

Check out our docs on interactions: Introduction to interactions and state | Learn Plasmic

2 Likes