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 an instance of the component.
Returns a Shape object representing the instance of the component.
Returns the reference to the main component shape.
true when this component is a VariantComponent
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.
Sets the shared plugin-specific data for the given namespace and key.
The namespace for the shared data.
The key for which to set the data.
The data to set for the key.
Retrieves all the keys for the shared plugin-specific data in the given namespace.
The namespace for the shared data.
Returns an array of strings representing all the keys in the namespace.
Represents a component element from a library in Penpot. This interface extends
LibraryElementand includes properties specific to component elements.