To enhance design efficiency and maintain consistency in your designs, you can create components from elements with high reusability. For example: buttons, icons, input boxes, etc.
Components are reusable UI elements in your design system.They consist of:
Tip: If you need to create multiple similar components, when the same component has multiple different states, you can use variants. They can simplify the libraries and make it easier for everyone to find the components they need.
You can create a single component or create components in bulk.
Select the layer you want to create as a component.
You can create a component in the following ways:
Once created, the selected layer will be nested in a component frame, and the Layers panel will show a purple icon to identify the component.
Tip: In the right sidebar, you can add a description to the component. Collaborating designers and developers can view the description in the Assets panel.
Tip: When you first create components, you can only access them in the current file. If you want to use them in other files, you need to publish them as Libraries.
You can edit components to ensure they remain up-to-date and consistent across your designs. The editing process depends on whether the component is unpublished or published.
However,You can only edit the main components in the file where it is located.
Unpublished components are local to the file in which they were created. Any changes made to the main component will automatically sync to all instances within the same file.
Published components are shared across multiple files through team libraries. Editing these components requires publishing updates to ensure changes apply to instances in other files.
If you’re working with an instance in another file,you should use the Go to main component feature to open the component library file. There you can edit the main component.
Tip: If you accessed the main component from another file, Motiff will enable you to return to the instance file after making your changes.
When a blue dot appears on the top of on the Assets panel in the left sidebar, it indicates that you have updates to publish: