Components

In Figma, Components are elements that can be reused throughout the project, where changing the component also changes its instances. We apply this principle to Parabeac to generate Widgets that are defined once and can be instantiated throughout the code.

Take, for instance, the following Component:

Untitled

Parabeac will create a generated file as follows:

Untitled

The following are the elements that make up a Component file:

Component Elements

Instances

Take the following Figma screenshot:

Untitled

Parabeac will generate a reference to Food Card in the CheckoutScreen as follows:

Untitled

Instance elements