Hi, I’m trying to create a component through a plugin that has four variants, and each variant includes a boolean property. Couldn’t really find something?!
For fun, I tried giving the task to ChatGPT o1.
Beside some “code” it also wrote:
Note: In Figma’s newer component properties system, you can directly attach a boolean property to a single variant (so that you don’t need separate variants for icon on/off). However, the Plugin API (as of now) typically requires you to create multiple variant nodes if you want a boolean property to appear in the properties panel.
Is this correct?