Variants help designers quickly adapt components to different needs without creating new designs. By switching between properties and values, you can customize components directly on the canvas.
Motiff displays variant properties in the right sidebar as instance properties:
Click next to the property value to switch to the property value you need. Or use to turn on or off a specific property.
Component sets are available in the Assets panel alongside regular components.
Instead of searching for specific variants, you can directly select the component set and create an instance.
After creating a component instance, you can select and configure its variant properties:
When switching between instances or variants, Motiff attempts to preserve your overrides to ensure a consistent design experience. Overrides are preserved based on the following rules:
For example: In the operations below, Motiff preserved the fill override in step 3 but did not preserve the override in step 4. This is because Motiff will preserve edits of the same layer name with the same property value. Primary Button-Icon On and Primary Button-Icon Off have the same blue #3071FF fill. When changing the fill of the Primary Button-Icon Off variant instance from #3071FF to pink #F531A0, and then switching to the variant of Primary Button-Icon On , the override will be preserved.
When switching to the variant of Secondary Button-Icon On , Motiff will not preserve the override because this variant's fill is white #ffffff, which is inconsistent with the property value of the variant before switching.
Tip: If you're unsure about a variant's original styles, select the instance, click next to the component name in the right sidebar, and view the component set in the original file.