1
0
Fork 0
freesewing/markdown/dev/reference/plugins/buttons/en.md
Joost De Cock 249f2600e5 chore: More linting
@nicholasdower is smarter than me. What's missing was the
`listItemIndent` setting
2022-02-20 14:44:38 +01:00

1.5 KiB

title
@freesewing/plugin-buttons

The @freesewing/plugin-buttons plugin provides the following snippets:

An example of the button, buttonhole, buttonhole-start, buttonhole-end, snap-stud, and snap-socket snippets

The buttons plugin is part of our plugin-bundle

Installation

npm install @freesewing/plugin-buttons

Usage

Like all build-time plugins, you load them by passing them to the freesewing.Design super-constructor:

import freesewing from "@freesewing/core";
import buttons from "@freesewing/plugin-buttons";
import config from "../config";

const Pattern = new freesewing.Design(config, buttons);

Now you can use the button, buttonhole, buttonhole-start, buttonhole-end, snap-stud, and snap-socket snippets in your designs.