Skip to main content

DetachedInfo

type DetachedInfo = {
type: 'local'
componentId: string
} | {
type: 'library'
componentKey: string
}

Information about detached instances. If the node is detached from a local component (a component in the same file), type will show local and componentId will contain the ID of this component. If the node is detached from a library component, type will show library and componentKey will contain the key of this component.