ReadonlyidThe unique identifier of the variant element. It is the id of the VariantContainer, and all the VariantComponents that belong to this variant have an attribute variantId which this is as value.
ReadonlylibraryThe unique identifier of the library to which the variant belongs.
ReadonlypropertiesA list with the names of the properties of the Variant
A list of all the values of a property across all the VariantComponents of this Variant
The name of the property
Remove a property of the Variant
The position of the property to remove
Rename a property of the Variant
The position of the property to rename
The new name of the property
List all the VariantComponents on this Variant.
Creates a duplicate of the main VariantComponent of this Variant
Adds a new property to this Variant
Represents a Variant in Penpot: the grouping of all the VariantComponents that belong to the same VariantContainer, together with their shared properties. This interface provides attributes and actions that affect the Variant as a whole (not a single VariantComponent).