2021-10-17 18:26:00 +02:00
|
|
|
---
|
2022-10-02 00:27:09 +02:00
|
|
|
title: plugin-buttons
|
2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
Published as [@freesewing/plugin-buttons][1], this plugin provides the following
|
|
|
|
[snippets](/reference/snippets):
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
- [button](/reference/snippets/button)
|
|
|
|
- [buttonhole](/reference/snippets/buttonhole)
|
|
|
|
- [buttonhole-start](/reference/snippets/buttonhole-start)
|
|
|
|
- [buttonhole-end](/reference/snippets/buttonhole-end)
|
|
|
|
- [snap-stud](/reference/snippets/snap-stud)
|
|
|
|
- [snap-socket](/reference/snippets/snap-socket)
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
```sh
|
2021-08-25 16:09:31 +02:00
|
|
|
npm install @freesewing/plugin-buttons
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
Either [add it as a part plugins](/reference/api/part/config/plugins) in your
|
|
|
|
design, or [add it to a pattern instance with
|
|
|
|
Pattern.use()](/reference/api/pattern/use).
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-12-13 04:39:07 -08:00
|
|
|
To import the plugin for use:
|
|
|
|
```js
|
|
|
|
import { buttonsPlugin } from '@freesewing/plugin-buttons'
|
|
|
|
// or
|
|
|
|
import { pluginButtons } from '@freesewing/plugin-buttons'
|
|
|
|
```
|
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
## Notes
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
The buttons plugin is part of our [plugin-bundle](/reference/plugins/bundle)
|
|
|
|
|
|
|
|
[1]: https://www.npmjs.com/package/@freesewing/plugin-buttons
|