Motiff supports naming and organizing components. This will result in a clear component directory (as shown in the image below), making it easier to find and replace components later.
Motiff supports two ways to build a component directory. You can use them together based on your needs.
Motiff will default to using the pages and frames from libraries as the first two layers of the component directory structure. You can use this rule to build your own component directory.
For example:
Place a Default button and a Disable button in a frame named Button. This frame is located under a page named Action.
You will see a two-level directory in the asset panel.
Page - Frame - Component name
Action - Button - Active button
Tip: The nested frame does not increase the directory level. The directory only takes the name of the top-level frame. Therefore, pages and frames can be created at most two levels of directories. If you find that two levels are insufficient for building a design system, you can combine them with the construction of names to build deeper structures.
You can also use specific names to merge two related components under the same directory, such as Button/Default and Button/Disable. Since they share the same root node name, Button becomes the directory name for these two components.
For example, the first step of building libraries for Motiff is to create a file.
Through the above naming methods, a structure tree will be formed:
The established design system in the end will present a clearly structured component directory.