> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://developers.webflow.com/designer/reference/slot-instance-element/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.webflow.com/_mcp/server. # Slots (Beta) The slot instance element represents a slot within a [component instance](/designer/reference/component-element). Slots define areas within a component where instance-level child content can be placed. Each slot accepts only component instances as children, not arbitrary elements. To get slot instance elements, use [`element.getSlots()`](/designer/reference/component-element/getSlots) on a `ComponentInstance` element. > **Beta** > > These methods are in public beta and may change with future releases. ## Methods Currently you can add components as children of slots programmatically but not remove them. #### [Get display name](/designer/reference/slot-instance-element/getDisplayName) Gets the display name of the slot as defined on the component. #### [Get Children](/designer/reference/slot-instance-element/getChildren) Gets the component instances currently placed in the slot. #### [Prepend](/designer/reference/slot-instance-element/prepend) Adds a component instance as the first child of the slot. #### [Append](/designer/reference/slot-instance-element/append) Adds a component instance as the last child of the slot. ## Properties | Property | Description | Type | Example | | :----------------- | :------------------------------------------------------------------------------------------------ | :-------- | :------------------------------------------------------ | | `id` | Unique identifier for the element composed of two identifiers, the `component` and the `element`. | `object` | `{component: "64c813...", element: "5edf8e59-71f9..."}` | | `type` | Specifies the type of the element. | `string` | `"SlotInstance"` | | `children` | Whether the element supports the standard children API. | `boolean` | `false` | | `customAttributes` | Whether the element can have custom attributes. | `boolean` | `false` | | `styles` | Whether the element can contain styles. | `boolean` | `false` | | `textContent` | Whether the element can contain text content. | `boolean` | `false` | ## Docs - [Get display name (Beta)](https://developers.webflow.com/designer/reference/slot-instance-element/getDisplayName.md): Get the display name of a slot as defined on the component. - [Get Children (Beta)](https://developers.webflow.com/designer/reference/slot-instance-element/getChildren.md): Get the component instances currently placed in a slot. - [Prepend (Beta)](https://developers.webflow.com/designer/reference/slot-instance-element/prepend.md): Add a component instance as the first child of a slot. - [Append (Beta)](https://developers.webflow.com/designer/reference/slot-instance-element/append.md): Add a new component instance as the last child of a slot.