Skip to main content

name

The name of the layer that appears in the layers panel. Calling figma.root.name will return the name, read-only, of the current file.

Signature

name: string

Remarks

If the node is a TextNode, the name will update automatically by default based on the characters property (autoRename is true). If you manually override the text node's name, it will set autoRename to false. This matches the behavior in the editor.

On this page