> ## Documentation Index
> Fetch the complete documentation index at: https://wonder.design/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Copy and export

> Copy a layer as code, as a prompt for your coding agent or as a PNG, copy a link to it, and export layers as images, PDF or code from the Export section.

Take your design out of Wonder: copy a layer straight to the clipboard, or save it as a file. Everything on this page works for viewers too.

**Before you start** · Web and desktop · Free plan

## Copy a layer

Select a layer, right-click it and open **Copy as**:

| Item | Shortcut | What you get |
| - | - | - |
| **Copy as code** | | The layer as React code with Tailwind classes. |
| **Copy as PNG** | <kbd>⌘</kbd><kbd>⇧</kbd><kbd>C</kbd> | A PNG of the layer at 2x. |
| **Copy prompt** | <kbd>⌘</kbd><kbd>⇧</kbd><kbd>⌥</kbd><kbd>C</kbd> | A prompt for your coding agent to build the selection. |
| **Copy styles** | <kbd>⌘</kbd><kbd>⌥</kbd><kbd>C</kbd> | The layer's styles, to paste on other layers. See [Select and arrange layers](https://wonder.design/docs/select-and-arrange-layers.md#copy-and-paste-styles). |

On Windows, use <kbd>Ctrl</kbd> for <kbd>⌘</kbd> and <kbd>Alt</kbd> for <kbd>⌥</kbd>.

**Copy as code** and **Copy as PNG** work on one layer at a time. **Copy prompt** works on several.

You can also run each of these from the command palette (<kbd>⌘</kbd><kbd>K</kbd>).

### Copy a prompt for your coding agent

**Copy prompt** gives a coding agent such as Claude Code or Codex what it needs to build your selection in your code:

* a reference to each selected layer, which the agent opens through [Wonder MCP](https://wonder.design/docs/wonder-mcp.md);
* the Wonder MCP address, and a link to its docs if the agent isn't connected yet;
* a snapshot of the layers' code.

Paste it into your agent's chat. When the selection is large, the prompt leaves the snapshot out and asks the agent to read the design over Wonder MCP instead.

To build a design in a repository you've added to Wonder, you don't need to copy anything. See [Apply a design to your code](https://wonder.design/docs/apply-a-design-to-your-code.md).

### Copy a link to a layer

Select one layer, right-click it and choose **Copy link to selection**. The link opens the file on that page, with the layer selected and in view, for anyone who can open the file.

## Export layers

The **Export** section sits at the bottom of the Properties panel whenever something is selected.

![The Export section: the file name Card, the size 2x, the format PNG and the Export as PNG button](https://mintcdn.com/wonder-0722b0f6/Ig4tBDjfjeU3SKs6/images/canvas-basics/export.light.webp?fit=max\&auto=format\&n=Ig4tBDjfjeU3SKs6\&q=85\&s=19a22b455bc8578080d7a1ff6696afe8)

![The Export section: the file name Card, the size 2x, the format PNG and the Export as PNG button](https://mintcdn.com/wonder-0722b0f6/Ig4tBDjfjeU3SKs6/images/canvas-basics/export.dark.webp?fit=max\&auto=format\&n=Ig4tBDjfjeU3SKs6\&q=85\&s=bc8e8b53752d08989449d8cdf9c55622)

1. Select one or more layers.
2. In **Export**, click **+**.
3. Pick a format and a size.
4. Click **Export as PNG** (the button names the format you picked).

To stop exporting a layer, click **−**.

With one layer selected, the file is named after the layer. Change it in the **Filename** field. With several layers, each layer becomes its own file, named after the layer, and they're saved together as `export.zip`.

In the desktop app, and in browsers that support it, Wonder asks where to save the file and remembers the folder for next time. Otherwise the file downloads.

### Formats and sizes

| Format | Sizes |
| - | - |
| **PNG**, **JPG**, **WebP** | **0.5x** to **4x** (2x by default), **720p** to **2160p**, **512w** or **512h** |
| **SVG** | Always 1x. Offered, and picked by default, when every selected layer is an SVG, such as an imported SVG or an icon |
| **PDF** | Always 1x |
| **Code** | **Tailwind** (the default) or **CSS** |

PNG at 2x is the default. Each export uses one format and size; to get another, change them and export again.

### Export as code

Choose **Code** to save the selection as a `.tsx` file:

* **Tailwind** writes React with Tailwind classes, the same code as **Copy as code**.
* **CSS** writes React with inline styles.

Tick **Include font files** to add the selection's font files. Wonder asks you to confirm your font license allows you to share them. The code and the fonts are then saved together as a zip.

### Export from the command palette

Press <kbd>⌘</kbd><kbd>K</kbd> and run **Export as PNG** or **Export as SVG** to save the selection without opening the Export section. **Export as SVG** skips layers that aren't SVGs.

## What viewers can copy and export

If you can only view a file, you can still:

* copy layers as code, as a PNG or as a prompt, and copy their styles and a link to them;
* export from the **Export** section and the command palette.

You can't paste into the file.

## If something goes wrong

### "Exported 3/5 elements"

Some layers couldn't be saved. In a browser, this reads **Downloading 3/5 elements…**. If you used **Export as SVG**, the missing layers aren't SVGs: export them as PNG instead. Otherwise, export the selection again to get the rest.

### "Images can't be rendered right now."

Wonder can't render images at the moment. Try exporting again in a few minutes.

### Pasted code turns into a text layer

Wonder doesn't turn code back into layers. Pasting code, including code copied from Wonder, adds a text layer that holds it. To move layers between files, copy them with <kbd>⌘</kbd><kbd>C</kbd> and paste them with <kbd>⌘</kbd><kbd>V</kbd>.

### There's no SVG format

**SVG** is only offered when every selected layer is an SVG. Pick **PNG** or **PDF** instead, or select only the SVG layers.

## Related

* [Apply a design to your code](https://wonder.design/docs/apply-a-design-to-your-code.md)
* [Wonder MCP](https://wonder.design/docs/wonder-mcp.md)
* [Select and arrange layers](https://wonder.design/docs/select-and-arrange-layers.md)
* [Share a file](https://wonder.design/docs/share-a-file.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.