Skip to main content

Choose different default values for instance swap property

  • December 22, 2022
  • 4 replies
  • 934 views

Antoine

Hi! Currently adding an instance swap property to a variant set element requires this element to have the same value in every variant (same instance, with the same properties if it is itself a variant).

It would be nice to be able to have multiple default values. For example, in a variant that has light and dark theme variations:

  • The light variants will have light elements as default instance value
  • The dark variants will have dark elements (the same) as default instance value

A workaround is to create a different property (“Choose Instance (Light)” and “Choose Instance (Dark)” for example), but it’s limited. Styles overrides are possible in default values, why not properties/instance overrides?

This topic has been closed for comments

4 replies

Pavel_Kiselev
  • Power Member
  • 438 replies
  • December 22, 2022

Have you seen preferred values when exposing an instance swap property? They allow you to do exactly what you describe


Antoine
  • Author
  • 144 replies
  • December 22, 2022

Hi Pavel, no that’s not what I’m looking for. Preferred values are amazing to narrow down user options in instances.

What I’m looking for is a way to have multiple default values of the nested instance in the master.


Ivo_Herrmann
  • 1 Would be nice to have different default values for the same instance swap property inside a component set. Same for different texts. Would also be nice to use different default text for one text property.

  • 0 replies
  • April 26, 2023

This topic was automatically closed 90 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