Skip to main content


The name of the layer that appears in the layers panel. This may update automatically for text layers. Returns the name of the current file on figma.root (read-only).


name: string


If the node is a TextNode, this will be a copy of the characters property if autoRename is true. This matches the behavior in the editor where a text layer's name is set automatically based on the text contents unless the user manually overrides the text layer's name.

On this page