set_item_spacing
Adjust spacing between elements in an auto-layout Frame in Figma. Specify node ID and spacing values to control child element distances and row/column gaps for wrapped layouts.
Instructions
Set distance between children in an auto-layout frame
Input Schema
Name | Required | Description | Default |
---|---|---|---|
counterAxisSpacing | No | Distance between wrapped rows/columns. Only works when layoutWrap is set to WRAP. | |
itemSpacing | No | Distance between children. Note: This value will be ignored if primaryAxisAlignItems is set to SPACE_BETWEEN. | |
nodeId | Yes | The ID of the frame to modify |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"counterAxisSpacing": {
"description": "Distance between wrapped rows/columns. Only works when layoutWrap is set to WRAP.",
"type": "number"
},
"itemSpacing": {
"description": "Distance between children. Note: This value will be ignored if primaryAxisAlignItems is set to SPACE_BETWEEN.",
"type": "number"
},
"nodeId": {
"description": "The ID of the frame to modify",
"type": "string"
}
},
"required": [
"nodeId"
],
"type": "object"
}