The component element represents a component instance within the Webflow Designer.

Methods

You can get the associated component definition of a component instance using the following method:

Get Component

Retrieves the associated component definition of the component instance.



Properties

PropertyDescriptionTypeExample
idUnique identifier for the element composed of two identifiers, the component and the element.object{component: "64c813...", element: "5edf8e59-71f9..."}
typeSpecifies the type of the element.string”ComponentInstance”
childrenIndicates whether the element can contain child elements.booleanfalse
customAttributesIndicates whether the element can have custom attributes.booleanfalse
stylesIndicates whether the element can contain styles.booleanfalse
textContentIndicates whether the element can contain text contentbooleanfalse
Built with