combine_as_variants
Combine Figma components into a component set by naming each with variant properties like Prop=Value, then arrange them in a grid.
Instructions
Combine multiple main Components into a Component Set (variants). Each component name must use the variant format "Prop=Value, Prop2=Value" (e.g. "Type=Primary, Size=Large") so Figma can derive the variant properties. Variants are then laid out in a grid (max 4 columns, 24px gap, 24px padding) and the component set is resized to fit them (skipped if the set uses auto layout).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional name for the component set | |
| parentId | No | Optional parent node ID for the component set (default: parent of the first component, or current page) | |
| componentIds | Yes | IDs of the COMPONENT nodes to combine |