For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Resources
Get started
ReferenceGuidesExamplesChangelog
ReferenceGuidesExamplesChangelog
  • Designer API
    • Introduction
    • Getting Started
    • Webflow CLI
    • Error Handling
    • App Modes
  • Elements
    • Creating & Retrieving Elements
    • Element Properties & Methods
    • Element Types & Methods
      • Element Presets
      • DOM Elements
      • Strings
      • Components
        • Get Component
        • Search props
        • Get Props
        • Get Resolved Props
        • Set Props
        • Reset All Props
        • Get Slots
        • Get Selected Slot
        • Get Text Prop Element
        • Unlink Component
      • Slots
      • Headings
      • Images
      • Links
      • Forms
  • Styles
    • Managing Style Properties
    • Managing Variable Modes
  • Components
  • Variables & Collections
    • Variable Collections
    • Variables
    • Variable Modes
  • Assets
  • Pages & Folders
  • Utilities
    • User Events & Notifications
    • App Intents & Connections
  • Additional Resources
    • API Playground
    • FAQs
LogoLogo
Resources
Get started
On this page
  • element.unlinkComponent()
  • Syntax
  • Returns
  • Example
  • Designer Ability
ElementsElement Types & MethodsComponents

Unlink Component (Beta)

Was this page helpful?
Previous

Slots (Beta)

Next
Built with

element.unlinkComponent()

Converts a component instance into a plain element tree, detaching it from its component definition.

After unlinking, the returned element is no longer a ComponentInstance — it is a regular element with the same visual structure. Changes to the original component definition will no longer affect it.

This action is undoable via the Designer’s undo stack.

Beta

These methods are in public beta and may change with future releases.

Syntax

1element.unlinkComponent(): Promise<AnyElement>

Returns

Promise<AnyElement>

A Promise that resolves to the root element of the detached element tree.

Example

1const elements = await webflow.getAllElements();
2const componentInstance = elements.find(el => el.type === 'ComponentInstance');
3
4if (componentInstance?.type === 'ComponentInstance') {
5 const unlinkedRoot = await componentInstance.unlinkComponent();
6 console.log('Unlinked element type:', unlinkedRoot.type);
7 // The element is now a regular element, no longer a ComponentInstance
8}

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canEditAnyAnyCanvasAny