Skip to main content

Change the mode of the frame on click

  • September 28, 2023
  • 5 replies
  • 1308 views

James_Willoughby

Is it possible to change the mode of the frame on protoype click?
The only way I can find is to have two frames set as different modes and move between them.

5 replies

Celine_D
Figmate
  • Community Support
  • 3443 replies
  • October 6, 2023

Hi James! Not at this moment, I can confirm that modes can’t be changed via prototype interaction.


Alexandre_Istrasoft

Hello @Celine_Figma, any news on that one ? seems like an obvious candidate for a prototype interaction to avoid duplicating an impressive amount of frames … What do you think ?


dvaliao
Figmate
  • Community Support
  • 4681 replies
  • February 13, 2024

Hey @Alexandre_Istrasoft, thanks for the feedback!

We’ve passed this onto our team for consideration and updated this topic to a feature request to gauge interest from the community. Feel free to Vote up top! ☝️


Stephanie_Walter1

Hi, I’m upvoting this.
My usecase is: I have a dashboard with sidebars on the left and the right. Right one can be expanded / collapsed.
I played with mode and variables to make components that adapt (using size variables) depending on, if the right sidebar is collapsed or not. So I have 2 modes: right sidebar open / right sidebar collapsed.
I would love to have an action on a button in that sidebar that would basically switch the mode of the whole frame, from one to the other to “simulate” that.


Very useful to avoid duplications. A few common use cases would be: Default/Dark theme switching…Language switch


Reply


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