Variants topic

Variants are special Attributes — they can be thought of as actionable attributes in a Mix

They are triggered when a specific UI state changes (such as hover).

When the Variant is triggered, the attributes listed under that Variant description take effect. Those attributes will override (if they are already present) or add to (if they are not) the current list of attributes.

Variants are added to the Mix object like any other Attribute.

Also, as with any other Attribute, there is a Utility class to create them, and associated Short Utils.

There are several built-in system Variants. See the VariantUtils class for a list of the utilities you can use to specify these.

Classes

Variant<T extends Attribute> Variants
VariantUtils Variants