- Reference
- Core API
- Part
- Parts: Configuration
- Naming parts
Naming parts
The name
property is — together with the draft()
method — the
only mandatory property in a part’s configuration object.
It should hold a string and be unique in the design:
Javascript
const part = {
name: 'example.front',
draft: ({ part }
) => part
}
TIP
We recommend to use a design.part
format when naming your part.
This avoids naming clashes when people re-use your parts in other designs.