The String element represents text content of an element within the Webflow Designer.

String elements can’t be created directly, and are only created when adding elements that contain text content (e.g. webflow.elementPresets.FormBlockLabel).

Methods

You can get and set the text value of a string element using the following methods:

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’String’
childrenIndicates whether an element can contain child elements.booleanfalse
stylesIndicates if the element can be styled.booleanfalse
textContentIndicates if the element can contain text contentbooleanfalse
customAttributesIndicates whether an element can have custom attributesbooleanfalse
Built with