Main Components
Main Components is currently a feature in beta. We recommend that you experiment with it but be prepared for the occasional unexpected behavior.

What is Main Component?

A Main Component is a bundle of elements and/or sections that is:
  • Preserved in terms of both style and content
  • Can be replicated across your project
  • Has a direct link to all of its instance where changes can be synced in both directions

Create a Main Component

1. Put together a combination of elements and/or sections

Think about the different use cases where you would reuse the same combinations of elements and/or sections. E.g:
  • Headers
  • Cards
  • Gallery
  • Footer
These would often have the same layout but have different content and styling properties.
Here you see a combination of a link button, text and images within a frame to create a card

2. Convert them into a Main Component

  • Select the collection of elements and/or section you want to create into one
    • Either create a frame around the collection
    • Or Select the collection from the right sidebar by holding down Shift + Clicking the individual elements
  • Click the “Create Main Component“ icon from the top bar
  • The elements will turn purple to indicate that it is now a Main Component

Edit Main Component

  • In the left sidebar, find the Main Component indicated by the purple color, and click the pencil icon "Edit Main Component".
Clck on highlight
  • You’ll be taken to a dedicated edit environment for that specific Main Component 👇
  • Make changes as usual.
    • 💡 You can change the layout of the other device modes from this environment too.
  • Click “Exit” to go back to the canvas. Changes will automatically be pushed to all instances.

Make changes to an instance

Make local changes

While on the canvas in your project, you can edit only one instance of a Main Component without the changes affecting any of the other instances from the same Main Component.
  1. 1.
    Select elements within an instance of the Main Component. Keeping an eye on the left sidebar will be helpful to you in selecting the desired elements you wish to change.
    • Pro tip: Hold Cmd/Ctrl to allow you to select an element within a frame with only one click (normally you would need to double-click to get within the frame).
  2. 2.
    Make design and/or content changes as normal.
Changes to the Main Component at the central level will not override these local changes in the future.

Override properties

If you have made changes locally that you want to push to all instances you can do so on two different levels, either push all changes content+style changes or style changes only.
  1. 1.
    Right-click an instance of the Main Component.
  2. 2.
    Enter “Main Components
    1. 1.
      Push all changes to main (allowing all changes including design and content)
    2. 2.
      Push style changes to main (pushing only the design changes, and will leave the content such as images and text to remain)

Reset instances

You may decide to reset the changes and go back to the default version of the Main Component, and you can do so on two different levels, either reset content+style changes or reset style changes only.
  1. 1.
    Right-click an instance of the Main Component.
  2. 2.
    Enter “Main Components
    1. 1.
      Reset instance (resetting all changes including design and content)
    2. 2.
      Reset instance styles (resetting only the design changes, and will leave the content such as images and text to remain changed)

Detach an instance

If you decide to break the link between an instance and its Main Component:
  1. 1.
    Right-click an instance of the Main Component.
  2. 2.
    Select “Main Components > Detach“.
The instance will be wrapped in a generic Frame.

Adding a Main Component

There’s a dedicated list of all Main Components in the Add Menu in the project you created it within.
  1. 1.
    Click the "+" icon (Add Menu) on the top bar to open the component library
  2. 2.
    Click the "Main components" tab from the left side
  3. 3.
    Select the Main component you want to use. You will be taken out of the library and back to the canvas.
  4. 4.
    Click or drag to size on the canvas to place your Main Component
Note: Main Components are only to be found for reuse in the same project you made it, however, once placed on the canvas you can easily copy/paste it to another project where it will be added to the Add Menu.
Last modified 1mo ago