create_component
Create a new empty component to reuse across designs. Insert it into a frame, auto-layout stack, or slot via parentNodeId, and set layout properties like index, sizing, and dimensions.
Instructions
Create a new empty component. Pass parentNodeId to insert into a frame, auto-layout stack, or slot. Inside auto layout omit x/y and use index. Nested into auto layout, omit width/height unless you want a fixed size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | No | ||
| index | No | ||
| width | No | ||
| height | No | ||
| parentNodeId | No | ||
| ignoreAutoLayout | No | ||
| layoutSizingVertical | No | FIXED | HUG | FILL | |
| layoutSizingHorizontal | No | FIXED | HUG | FILL |