Don't allow access or swap instance to any user

  1. I have created a plugin to get the component by the key from the library by instance.
  2. But when the other user or any user creating the button from library it is allowing access other component from “swap instance” in which they can access other components without key as well check the screenshot. How can we prevent this because it is not secure for us we are going to sell our component.


The only way to solve this is to publish multiple different libraries, each with a separate component (so one component per file).

Like if I have 3 Component set for button like for Button/fll, button/text, button/outline. Each has 20 variants. so you mean Button/fill set should in different library then button/text should be in different library?


Yes, correct