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.
Supported On:
- BooleanOperationNode
- CodeBlockNode
- ComponentNode
- ComponentSetNode
- ConnectorNode
- DocumentNode
- EllipseNode
- EmbedNode
- FrameNode
- GroupNode
- HighlightNode
- InstanceNode
- LineNode
- LinkUnfurlNode
- MediaNode
- PageNode
- PolygonNode
- RectangleNode
- SectionNode
- ShapeWithTextNode
- SliceNode
- StampNode
- StarNode
- StickyNode
- TableNode
- TextNode
- VectorNode
- WashiTapeNode
- WidgetNode
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.