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

# Overview

> Learn the Subframe editor interface and navigate between editing modes.

The Subframe editor is where you design pages, build components, and export production-ready code. Switch between three modes depending on your task, and open Ask AI from any of them.

## Editor modes

<Frame>
  <img src="https://mintcdn.com/subframe-59800133/rXK64HhL3P7RMdKN/images/editor/editor-modes.png?fit=max&auto=format&n=rXK64HhL3P7RMdKN&q=85&s=4cec2576bdfe8f688ecebfedacd4d8ac" alt="Editor mode selector showing Design, Prototype, and Code mode buttons" width="312" height="33" data-path="images/editor/editor-modes.png" />
</Frame>

You can use the mode buttons in the top-right of the editor to switch between the following modes:

<CardGroup cols={2}>
  <Card title="Design Mode" icon="square-mouse-pointer">
    Edit visually with drag-and-drop, responsive canvas, and layers & properties.
  </Card>

  <Card title="Prototype Mode" icon="mouse-pointer-click">
    Build interactive prototypes from your designs by annotating and chatting with AI
  </Card>

  <Card title="Code Mode" icon="code">
    View code, set up MCP server, and export to AI coding tools like Claude Code, Cursor, and Codex.
  </Card>
</CardGroup>

[Ask AI](/learn/ask-ai/prompt-to-design) is available in every mode — click the **Ask AI** button in the toolbar or press <kbd>Cmd</kbd> + <kbd>/</kbd> to open the docked panel and generate pages, components, and theme changes from a prompt.

## Editor layout

The editor consists of three main areas: left panel, canvas (center), and Inspector (right panel).

<Frame>
  <img src="https://mintcdn.com/subframe-59800133/rXK64HhL3P7RMdKN/images/editor/editor-layout.png?fit=max&auto=format&n=rXK64HhL3P7RMdKN&q=85&s=b9b9ad74c9be11d0b87aeafadc85ab16" alt="Editor layout showing the left panel, canvas, and inspector" width="1920" height="1440" data-path="images/editor/editor-layout.png" />
</Frame>

### Left panel

You have the following panels available to you:

**Pages** — Switch between pages and flows in your project. Navigate to different designs or subcomponents when editing components.

**Layers** — View and organize the element hierarchy for the current page. Select, reorder, or group elements. Shows the complete component tree.

**Insert** — Browse and insert components and snippets. Search or drag elements onto the canvas. Switches between snippet and component libraries.

### Canvas (center)

Your design surface where elements appear at their actual rendered size. The canvas shows exactly how your design will look at the current breakpoint.

Unlike infinite canvas tools, Subframe uses flexbox for layout (not absolute positioning). Elements flow and arrange using Stacks, resize responsively, and adapt to different screen sizes automatically. If you're familiar with Figma, this works similarly to auto-layout.

### Inspector (right panel)

This is the context-aware properties panel that changes based on editor mode and selected element.

For example, in design mode, you'll see layout, sizing, colors, backgrounds, borders, shadows, padding, overflow, and component properties. In code mode, you'll see the Inspect tab, which shows the code for the selected element.

### Show and hide panels

Press <kbd>Cmd</kbd> + <kbd>\\</kbd> to cycle through panel layouts: both panels visible, left panel collapsed, then both panels hidden. Press <kbd>Cmd</kbd> + <kbd>.</kbd> to show or hide all panels at once, including the Ask AI panel.

## Responsive breakpoints

Switch between breakpoints using the **Breakpoint** selector in the Inspector panel. Every project starts with **Desktop** and **Mobile**, and you can add custom breakpoints for any screen size.

<Frame>
  <img src="https://mintcdn.com/subframe-59800133/rXK64HhL3P7RMdKN/images/editor/editor-breakpoints.png?fit=max&auto=format&n=rXK64HhL3P7RMdKN&q=85&s=b551a2590f0297cad86db5b8e2665176" alt="Breakpoint selector in the Inspector panel listing Desktop and Mobile with their width ranges" width="1920" height="1440" data-path="images/editor/editor-breakpoints.png" />
</Frame>

**Desktop (base)** — Applies at every width. Elements use their base flex properties.

**Mobile and custom breakpoints** — Add overrides for properties that need different values below a given width.

We recommend you design for desktop first, then add overrides only where needed. For details, see [Responsive design](/learn/design-mode/responsive-design).

## Collaboration

Multiple team members can edit simultaneously. See who's viewing or editing with avatars at the top of the left panel.

<Frame>
  <img src="https://mintcdn.com/subframe-59800133/rXK64HhL3P7RMdKN/images/editor/editor-collaborators.png?fit=max&auto=format&n=rXK64HhL3P7RMdKN&q=85&s=1dabd11df128405d9b8ede84206e04fe" alt="Editor collaboration showing the team members and avatars" width="155" height="82" data-path="images/editor/editor-collaborators.png" />
</Frame>

Click the **Share** button in the top left, next to your avatar, to invite team members or create view-only links. Set roles (viewer/editor) and toggle public preview access.
