2021-10-17 17:34:55 +02:00
|
|
|
***
|
|
|
|
|
|
|
|
## title: buttonhole
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
The `buttonhole` snippet is used to mark buttonhole placement and is
|
|
|
|
provided by [plugin-buttons](/reference/plugins/buttons/).
|
|
|
|
|
|
|
|
```js
|
|
|
|
snippets.demo = new Snippet('buttonhole', points.anchor)
|
|
|
|
```
|
|
|
|
|
|
|
|
<Example part="snippets_buttonhole" caption="An example of the buttonhole snippet" />
|
|
|
|
|
|
|
|
<Note>
|
|
|
|
|
|
|
|
##### Aligning your buttons and buttonholes
|
|
|
|
|
|
|
|
We provide three buttonhole snippets with a different alignment:
|
|
|
|
|
2021-10-17 17:34:55 +02:00
|
|
|
* [buttonhole](/reference/snippets/buttonhole/): Anchor point is the middle of the buttonhole
|
|
|
|
* [buttonhole-start](/reference/snippets/buttonhole-start/): Anchor point is the start of the buttonhole
|
|
|
|
* [buttonhole-end](/reference/snippets/buttonhole-end/): Anchor point is the end of the buttonhole
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
</Note>
|