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.

If the node is a PageNode with no children and the name is a page divider name, it will set isPageDivider to true. A page divider name consists of all asterisks, all en dashes, all em dashes, or all spaces.