set_layout_sizing
Adjust horizontal and vertical sizing modes for auto-layout frames in Figma, enabling precise control over fixed, hug, or fill settings to optimize design layouts.
Instructions
Set horizontal and vertical sizing modes for an auto-layout frame in Figma
Input Schema
Name | Required | Description | Default |
---|---|---|---|
layoutSizingHorizontal | No | Horizontal sizing mode (HUG for frames/text only, FILL for auto-layout children only) | |
layoutSizingVertical | No | Vertical sizing mode (HUG for frames/text only, FILL for auto-layout children only) | |
nodeId | Yes | The ID of the frame to modify |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"layoutSizingHorizontal": {
"description": "Horizontal sizing mode (HUG for frames/text only, FILL for auto-layout children only)",
"enum": [
"FIXED",
"HUG",
"FILL"
],
"type": "string"
},
"layoutSizingVertical": {
"description": "Vertical sizing mode (HUG for frames/text only, FILL for auto-layout children only)",
"enum": [
"FIXED",
"HUG",
"FILL"
],
"type": "string"
},
"nodeId": {
"description": "The ID of the frame to modify",
"type": "string"
}
},
"required": [
"nodeId"
],
"type": "object"
}