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.
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.
By default, creating a component turns your selected layer into one component. You can use the Create multiple components feature to create separate components from multiple selected layers.
You can delete a main component at any time. Deleting a main component does not remove instances of that component from your files.
If a main component is deleted, you can use an instance of that component to restore it.
If you are in the library file that contained the main component, click the Restore main component button from the properties panel in the right sidebar.
If you are in a file that did not contain the main component, click Go to main component. In the Restore component modal, click the Restore button.
Tip: Want to change the location of a component? You can move published components between files and libraries.