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

# Creating prototypes

> Create interactive prototypes with AI-powered code generation.

Prototypes let you build real web apps from your page designs, synced with your design system. They are created from screens on a [canvas](https://docs.subframe.com/design/canvases.md) by chatting and adding annotations.

## Creating a new prototype

![The Prototype panel's empty state with Annotate, Chat with AI, and Sync designs cards, an Add annotations button, and the prompt box](https://mintcdn.com/subframe-59800133/8aw-1C9kraDsFhl_/images/prototype-mode/prototype-empty-state.png?fit=max\&auto=format\&n=8aw-1C9kraDsFhl_\&q=85\&s=cd9724543dc99624d29f31bba67db9f7)

1. Create a new [canvas](https://docs.subframe.com/design/canvases.md)
2. Design your screens in design mode
3. Add [annotations](https://docs.subframe.com/design/prototype-mode/annotations.md) describing functionality
4. Click the **Prototype** tab at the top of the Inspector panel. In the [desktop app](https://docs.subframe.com/desktop-app.md), open the **Pages** view and click **Open prototype** next to the canvas instead
5. Type your first message in chat, then click **Send**

Subframe may take a few minutes to generate the prototype. A preview appears when it is ready.

## Iterating on prototypes

There are two ways to iterate on your prototype:

* **Chat** — Use prototype chat to add features, fix bugs, or refine interactions
* **Design updates** — Make changes in design mode, then apply them to your prototype

#### Chat

![The prototype chat bar with a 2 pages context chip, the annotate, edit design, and start over buttons, and a send button](https://mintcdn.com/subframe-59800133/8aw-1C9kraDsFhl_/images/prototype-mode/chat-bar.png?fit=max\&auto=format\&n=8aw-1C9kraDsFhl_\&q=85\&s=6710e79c3ad45c389ff58169fef9f9e0)

1. Open prototype
2. Type your prompt in the chat input
3. Press <kbd>Enter</kbd> to send

#### Making design updates

![Apply design updates from chat bar](https://mintcdn.com/subframe-59800133/rXK64HhL3P7RMdKN/images/prototype-mode/apply-updates.png?fit=max\&auto=format\&n=rXK64HhL3P7RMdKN\&q=85\&s=3df20ea80e1f001ef57342ac90759f8b)

1. Make design changes or update annoations
2. Navigate to prototype mode
3. Click **Apply** in the chat bar

Subframe updates the prototype code to match your new design.

> [!WARNING]
>
> Design changes don't sync from prototype back to pages.

#### Getting unstuck

If your prototype isn't working as expected, you have two options:

* **Start over** — Click **Start over** in the chat bar to regenerate a prototype from scratch using your current annotations
* **Revert to previous version** — Find a version in your conversation and click on  to revert to that version

## Viewing code

1. Open prototype mode
2. Find version you want to inspect, click on&#x20;
3. You should now see the code

## Downloading code

1. Open prototype mode
2. Find version you want to export, click on&#x20;
3. Top-right, click on **Download**&#x20;

This will download your prototype code as a Vite app in a zip file.

## Sharing prototypes

1. Click the **Share** button at the top of the Inspector panel
2. Toggle on **Share link to latest prototype**
3. Copy and paste the generated link

## Best practices for design

* Create a new screen for each page (including dialogs) and states (e.g. loading, empty state, selected tabs)
* Subframe prototyping is meant for smaller prototypes. Avoid prototypes larger than 6+ designed screens—it will get slow
* If you need to create larger prototypes, try [exporting to code](https://docs.subframe.com/develop/installation.md) and using Claude Code, Cursor, or Codex

## FAQ

> [accordion] Can I get designs out of my prototype?
>
> Not yet. To keep your designs in sync with your prototype, we recommend using chat and annotations for updating functionality, and applying changes from design mode for updating designs.

> [accordion] How do I add a dialog?
>
> 1. Create two screens: one with the button, one with the dialog open
> 2. Add an [annotation](https://docs.subframe.com/design/prototype-mode/annotations.md) on the button to open the dialog on click


## Related topics

- [Generating designs](https://docs.subframe.com/design/ask-ai/prompt-to-design.md)
- [MCP server](https://docs.subframe.com/agent/mcp-server.md)
- [Interactions](https://docs.subframe.com/design/prototype-mode/click-through-prototypes.md)


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