Skip to main content
Question

figma.createComponentSet?

  • April 6, 2024
  • 1 reply
  • 189 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 comments

1 reply

James_Yang
Figmate
  • Figmate
  • 82 replies
  • April 6, 2024

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

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings