set_layout_sizing
Set horizontal and vertical sizing modes for Figma frames, components, instances, and text nodes to control whether they hug content, fill space, or remain fixed.
Instructions
Set horizontal and vertical sizing modes for a frame, component, component set, instance or text node in Figma
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the frame, component, component set, instance or text node to modify | |
| layoutSizingVertical | No | Vertical sizing mode (HUG for auto-layout frames/components/instances and text, FILL for auto-layout children only) | |
| layoutSizingHorizontal | No | Horizontal sizing mode (HUG for auto-layout frames/components/instances and text, FILL for auto-layout children only) |