Skip to main content
Question

Add interaction on swapping a component to a specific variant

  • August 24, 2021
  • 1 reply
  • 744 views

Dmitrii_Sapelkin

I made a component with several variants that can be switched by click. I placed this component into a frame, and in the prototype, I want some transitions to happen as I switch variants.

For instance, I made a component that switches tabs for me, like this:
image

I place this component in the frame, and I want the content of the screen to change according to the selected tab. The way I do it now is I put the tab switcher into a new component, and create variants for each tab, and all possible interactions, which is quite cumbersome, like this:
image
and
image

To make the interaction scheme simpler, I’d like to have an option to run an interaction when a specific variant is selected, something like this:
image

It means, when Variant1 is selected on the component, another component, called Component1, is changed to its Variant4.

This topic has been closed for comments

1 reply

  • 0 replies
  • September 23, 2021

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings