Create Component Set
create_component_setCombine multiple components into a component set with custom property definitions, enabling variant management in Figma.
Instructions
Combine components into a component set (variants) with property definitions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| components | Yes | Array of component objects | |
| properties | Yes | Array of property names (e.g. ['Size', 'State']) | |
| componentSetName | No | Name for the component set | |
| parentId | No | Parent frame to place the set in | |
| parentNodeName | No | Name of parent node (required if parentId provided, for verification) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the created component set | |
| name | Yes | Name of the component set |