---
title: plugin-flip
---

Published as [@freesewing/plugin-flip][1], this plugin provides [the flip
macro](/reference/macros/flip) which flips (mirrors) an entire part
vertically around the Y-axis.  It's typically used to create a right and left
pattern part from the same basis.

## Installation

```sh
npm install @freesewing/plugin-flip
```

## Usage

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).

To import the plugin for use:
```js
import { flipPlugin } from '@freesewing/plugin-flip'
// or
import { pluginFlip } from '@freesewing/plugin-flip'
```

[1]: https://www.npmjs.com/package/@freesewing/plugin-flip
