Principles of creating UI with layouts

Hi there! My question is more about the general principles of layouts. I am trying to practice UI design using Rive, and, of course, I want to create something interactive, such as a fully functioning prototype or (ideally) a real interface. I am using layouts, and now with data binding, we have instances (for example, for buttons, or for menu items), lists, and artboard variables.

As I understand, the idea is to design one element (button or menu item) with multiple variants, and use those variants through a list in the menu artboard. But, each element should have its own trigger or Boolean variable to be connected to a particular action. Like checking a certain box, or opening a certain window. It means that I still need to use multiple buttons or checkboxes to be sure that each element has its own functionality?