1
0
Fork 0
freesewing/markdown/dev/reference/api/part/config/name/en.md
2022-12-23 08:55:40 -08:00

479 B

title
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:

const part = {
  name: 'example.front',
  draft: ({ part }) => part
}

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.