ReadonlyvariantsAccess to the Variant interface, for attributes and actions over the full Variant (not only this VariantComponent)
ReadonlyvariantA list of the variants props of this VariantComponent. Each property have a key and a value
If this VariantComponent has an invalid name, that does't follow the structure [property]=[value], [property]=[value] this field stores that invalid name
ReadonlyidThe unique identifier of the library element.
ReadonlylibraryThe unique identifier of the library to which the element belongs.
The name of the library element.
The path of the library element.
Creates a new Variant from this standard Component. It creates a VariantContainer, transform this Component into a VariantComponent, duplicates it, and creates a set of properties based on the component name and path. Similar to doing it with the contextual menu or the shortcut on the Penpot interface
If we know the namespace of an external plugin, this is the way to get their data.
The namespace for the shared data.
The key for which to retrieve the data.
Returns the shared data associated with the key as a string.
Represents a component element from a library in Penpot. This interface extends
LibraryElementand includes properties specific to component elements.