Skip to main content
Question

figma.createComponentSet?

  • April 6, 2024
  • 1 reply
  • 221 views

Lewis_Healey

I’m trying to create a componentSet with two components inside but I can’t find anything in the plugin api that lets me achieve this?

Any guidance on how?

I can clone an existing ComponentSet and insert the components but it seems like an oversight I can’t just create that node type via the api

This topic has been closed for replies.

1 reply

James_Yang
Figmate
  • Figmate
  • April 6, 2024

You should use figma.combineAsVariants(): combineAsVariants | Plugin API

There is no figma.createComponentSet() API because component sets cannot be empty.