Skip to main content

parent

Returns the parent of this node, if any. This property is not meant to be directly edited. To reparent, see appendChild.

Signature

parent: (BaseNode & ChildrenMixin) | null [readonly]

Remarks

The root node (i.e. figma.root) doesn't have a parent.

Components accessed via instance.mainComponent do not always have a parent. They could be remote components or soft-deleted components.

On this page