set_layout_mode
Define the layout mode and wrap behavior of a Figma frame by specifying horizontal, vertical, or no layout, and enabling or disabling child element wrapping.
Instructions
Set the layout mode and wrap behavior of a frame in Figma
Input Schema
Name | Required | Description | Default |
---|---|---|---|
layoutMode | Yes | Layout mode for the frame | |
layoutWrap | No | Whether the auto-layout frame wraps its children | |
nodeId | Yes | The ID of the frame to modify |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"layoutMode": {
"description": "Layout mode for the frame",
"enum": [
"NONE",
"HORIZONTAL",
"VERTICAL"
],
"type": "string"
},
"layoutWrap": {
"description": "Whether the auto-layout frame wraps its children",
"enum": [
"NO_WRAP",
"WRAP"
],
"type": "string"
},
"nodeId": {
"description": "The ID of the frame to modify",
"type": "string"
}
},
"required": [
"nodeId",
"layoutMode"
],
"type": "object"
}